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 do you understand by a Static Variable?
What is <> used for in java?
What is the difference between the paint() and repaint() methods in java programming?
When do we use synchronized blocks and advantages of using synchronized blocks?
What is a method signature java?
Is set ordered in java?
Explain the overview of UDP messaging.
what is meant wrapper classes?
What is bytecode in java ?
What does isempty () do in java?
Explain restrictions on using enum?
What are the basic control structures?
Explain inheritance in java?
Is nullpointerexception checked or unchecked?
How do you classify Dialog Box?