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 an example of character?

548


How do I type unicode?

523


What Is Query Throttling in java?

555


What is java util concurrentmodificationexception?

493


what is nested class in java?

597






What are the Static and Dynamic Variables? Differentiate them.

594


What is the significance of continue jump statement? Explain with an example.

737


Why does java not support operator overloading?

654


What does it mean that strings are immutable?

567


what is thread? What are the high-level thread states? : Java thread

782


How to compare two strings in java program?

667


Are functions objects in java?

537


What are the different conditional statements?

552


What are the advantages of encapsulation in java?

547


Is array an object in java?

541