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 does function identity () do?
How to split arraylist elements in java?
How do you empty a list in java?
Why is static used?
In the below example, how many string objects are created?
What does void * mean?
What is javac used for?
What does int [] mean in java?
Which is better ascii or unicode?
How to sort array in descending order in java?
Can we inherit a class with private constructor?
How do you clear a method in java?
What is an example of a boolean?
What restrictions are placed on method overloading?
What is the purpose of skeleton and stub?