String s2 =
new String ("Hellojava"); }
First one will create object in string pool and second
one creates object in heap memory area.
What is String in Java? String is a data type?
Why String is an immutable Object?
What are different ways to create String Object in java?
Can we use String in switch case?
what is the Difference Between String , StringBuilder and StringBuffer Classes in java?.
What is Java String Pool?
Why String is popular HashMap key in Java?
what methods supported by String class in java?
Write a function to determine whether or not a string is a palindrome?.
What is String subSequence methodin java?.
Write a method that will remove given character from the String in java?
How do you check if two Strings are equal in Java?
How to Split String in java?
How can we make String upper case or lower case in java?.
Why String is immutable or final in Java with example?.
What is difference between String and new String() in java?
Can we compare String using == operator? What is risk?
What is difference between Compare to and equals method in java?.
How to create String buffer in java?.
What stringbuffer method in java used?.
What StringBuilder method in java used?.
How to use StringBulider method in java give example,and how to create it?.