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 to print nodes of a Binary tree?
what is recursion in java
What is nan inf?
What is a Transient Object?
give an example for encapsulation?
Define how objects are stored in java?
What is the difference between hashmap and hashtable? What is an interface?
What are different data structures in java?
How to sort list of list in java?
What about interthread communication and how it takes place in java?
What is an argument in java?
What type of language is java?
What is the purpose of static methods and static variables?
What are the legal operands of the instanceof operator?
What is variable and its types?