- public boolean equals(object obj) :- Compare the values of Strings (Case Sensitive ).
- public boolean equalsIgnoreCase(oblect/String) : - Compare the values but ignore the case .
- public String concat(String str) :- Concatenate the Specified string to the end of this string .
- public int compareTo(String str) :-Compare two Strings and return int.if first have more length return 1 .for less -1 and for equals return 0 (Case Sensitive).
- public int compareToIgnoreCase(String str) :- Just Ignore the Case .
- public String subString(int beginIndex) :- returns a new String .
- public String subString(int beginindex, int endIndex) .
- public String toUpperCase() :- Convert Full string to upper case .
- public String toLowerCase() :- Convert Full String to Lower Case .
- public String trim() :- Return a copy of the String with leading and trailling whitespace omitted .
- public boolean startsWith(String Prefix) : Tests if this String starts with the specified prefix .
- public boolean endsWith(String suffix) : - Tests if this String ends with the specified suffix .
- public char charAt(int index) :- returns the char value of specified index .
- public int length() :
- public String intern() : - Returns a conical representation for string object .
- Once String object has been created , It's value can't be changed . it is immutable property of string object in java .
- If one reference variable changes the value of the object , it will be affected to all the reference variables . that's why string objects are immutable in java .
Java String
Subscribe to:
Posts (Atom)
Optimize your Programming Skills
Java is The most Powerful Programming Language , Because of it's Oops Concept and it's Compilation Process . After The Compilatio...

No comments:
Post a Comment