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
What is java volatile?
What is the purpose of using javap?
What is the difference between overriding & overloading?
Is there a way to increase the size of an array after its declaration?
What is api data?
Explain the difference between static and dynamic binding in java?
what do you mean by classloader?
what methods would you overwrite in java.lang.object class?
Can an interface implement another interface?
What is string pool?
does java support pointers?
How many types of operators are there?
How many java versions are there?
what are three ways in which a thread can enter the waiting state? : Java thread
What is the file type?