Answer Posted / jayapala.pm
String is a collection of characters.
- In JAVA String is a wrapper class,String object can hold
the collection of characters.
- wrapper class is wrap the primitive value with in the
constructor is called wrapper classes.
- Strings are immutable in JAVA(we can't modify the string
object after initialize the value to object)
- String str = "greatJP"; we can assign value directly.This
option only for String class.
- Normally we will declare String str = new
String("GreatJP");
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Difference between final and effectively final ?
What is difference between overloading and overriding in java?
What is the constructor?
What is multiple inheritance? Is it supported by java?
Can a serialized object be transferred via network?
What is the primitive type byte?
When should I use singleton?
What is a values collection view ?
What are the parts of a method?
Is it possible for a yielded thread to get chance for its execution again?
Can we override the private methods?
What is struts in java?
What are the different types of sorting in java?
What is a buffer in java?
What are methods?