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
How do you control extraneous variables?
What is the difference between heap memory and stack memory?
What is meant by method overriding?
Why you should not use singleton?
Explain about OOPS concepts and fundamentals.
What is object of class in java?
Difference between arraylist and hashset in java?
Why unicode is important?
Can there be an abstract method without an abstract class?
What is difference between iterator access and index access?
What do you mean by scope of variable?
what state does a thread enter when it terminates its processing? : Java thread
What is the parse method in java?
What is implicit object in java?
How do you compare two strings lexicographically?