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 an example of character?
How do I type unicode?
What Is Query Throttling in java?
What is java util concurrentmodificationexception?
what is nested class in java?
What are the Static and Dynamic Variables? Differentiate them.
What is the significance of continue jump statement? Explain with an example.
Why does java not support operator overloading?
What does it mean that strings are immutable?
what is thread? What are the high-level thread states? : Java thread
How to compare two strings in java program?
Are functions objects in java?
What are the different conditional statements?
What are the advantages of encapsulation in java?
Is array an object in java?