whats string ?

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


Please Help Members By Posting Answers For Below Questions

How to print nodes of a Binary tree?

2000


what is recursion in java

805


What is nan inf?

690


What is a Transient Object?

826


give an example for encapsulation?

768


Define how objects are stored in java?

783


What is the difference between hashmap and hashtable? What is an interface?

778


What are different data structures in java?

718


How to sort list of list in java?

873


What about interthread communication and how it takes place in java?

797


What is an argument in java?

696


What type of language is java?

754


What is the purpose of static methods and static variables?

753


What are the legal operands of the instanceof operator?

783


What is variable and its types?

763