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

What is java volatile?

748


What is the purpose of using javap?

849


What is the difference between overriding & overloading?

774


Is there a way to increase the size of an array after its declaration?

819


What is api data?

782


Explain the difference between static and dynamic binding in java?

838


what do you mean by classloader?

757


what methods would you overwrite in java.lang.object class?

776


Can an interface implement another interface?

790


What is string pool?

830


does java support pointers?

764


How many types of operators are there?

737


How many java versions are there?

762


what are three ways in which a thread can enter the waiting state? : Java thread

794


What is the file type?

825