Java Strings

Java Strings in Hindi – Strings Functions In Java In Hindi

Java

Java Strings in HindiStrings Functions In Java In HindiString Functions In Hindi:- String Main Multiple Characters Hote Hain And Java Main String Ke Liye Bahut Se String Functions Hain Jinka Istemal String Par Operation Karne Ke Liye Kiya Jata Hain |

Also Read – Java Operators

Java Strings in Hindi

String Characters of Callaction Hoti hai | Aashan Word Me Kahe to jab words ko ek sath me likha jata hai to string banti hai |

Java Mai String Variable Ko Create Karne Ke Liye String Keyword Ka Istemal Kiya Jata Hai |

String Ko Ham Double Or Single quotes (” “) Me Close karte hai | String ka Istemal Har Programming Language Me Hota Hai |

String Title = "Hello Friends";

Java me kisi word ko ya character ko store Karne ke liye aap String Data Type ka variable bana sakte hai |

Java Main String Ke Kuch Functions Bhi Hote Hian Jo Koi Tarah Ke Task Ko Pura Karne Main Istemal Kiye Jate Hain |

Strings Functions In Java In Hindi

Java Main String Functions Ki Baat Ki Jaye To Ye Lagbhag 30+ Hain | Lekin Ham Kuch Important Function Ko Dekhne Wale Hain.

Yadi Aapne  HTML Full Course  And CSS Full Course Nhi Read Kiya Hai To Aap Vah Bhi Read Kar Sakte Hai |

Find String Length in Java In Hindi

Java Mai String Length Ko Find Karne Ke Liye length() Function Diya Gaya Hai. Aap Is length() Functions Ka Istemal Karke Length Find Kar Sakte Hai |

Example:

public class Myclass {
  public static void main(String[] args) {

    String name = "MasterPrograming"
    results = name.length();
    System.out.println(results);
    
  }
}

Output:

15

Convert String To Upper And Lower Case

String Ko UPPER And LOWER Case Mai Convert Karne Ke Liye String Functions toUpperCase() and toLowerCase() Diye Gaye Hai. Aap Inka Istemal Karke String Ko Upper And Lower Case Mai Convert Kar Sakte Hai |

Example:

public class Myclass {
  public static void main(String[] args) {

    String txt = "MasterPrograming";
    System.out.println(txt.toUpperCase());  
    System.out.println(txt.toLowerCase()); 
    
  }
}

Output:

MASTERPROGRAMING
masterprograming

Java String Concatenation in Hindi

Java Mai String Concatenation Karne Ke Liye + Operator Ka Istemal Kiya Jata Hain. Aap Isse 2 String Ko Ek Sath Concatenation Kar Sakte Hain.

Example:

public class Myclass
{
  public static void main(String[] args)
  {
    String firstName = "Master";
  	String lastName = "Programing";
    System.out.println(firstName + " " + lastName);
  }
}

Output:

MasterPrograming

Aap Is Tarah Se Concat Kar Sakte Hai String Ko |

String Ko concat() Karne Ke Liye Function Diya Gaya Hain |

Example:

public class Myclass
{
  public static void main(String[] args)
  {
    String firstName = "Master";
  	String lastName = "Programing";
    System.out.println(firstName.concat(lastName));
  }
}

Output:

MasterPrograming

Finding a Character in a String in Java

Java Mai Character Ko Find Karne Ke Liye indexOf() Function Diya Gaya Hai. Aap index Find Karne Ke Liye index(pos) De Sakte Hai |

Java counts positions from zero.

Example:

public class Myclass
{
  public static void main(String[] args)
  {
    String firstName = "Master Programing";
    System.out.println(firstName.indexOf("Pro"));
  }
}

Output:

7

Java Strings Advance in Hindi

Escape characterResultDescription
\’Single quote
\”Double quote
\\\Backslash
CodeResult
\nNew Line
\rCarriage Return
\tTab
\bBackspace
\fForm Feed

Yadi Aapne  HTML Full Course  And CSS Full Course And Python Full Course And PHP Full Course Nhi Read Kiya Hai To Aap Vah Bhi Read Kar Sakte Hai |

Friends Mujhe Umeed Hai Ki Aapko Strings Functions in Hindi Ke Bare Mai 100% Jankari Ho Gayi Hogi | Agar Aapko Learn Karne Main Dikkat Aa Rahi Hai To Aap Mere Se Contact Kar Sakte Hai |

Leave a Reply

Your email address will not be published. Required fields are marked *