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
Give me an example of array and linked list? Where they can be used?
What is the java project architecture?
How many ways can an argument be passed to a subroutine and explain them?
What are new features introduced with java 8 ?
When will you define a method as static?
When can an object reference be cast to an interface reference in java programming?
What is string in java?
I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on avdhesh_chauhan007@yahoo.co.in
What is the purpose of encapsulation?
What is literal example?
Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.
What is the driver class?
What is a class component?
In how many ways we can create threads in java?
What is the purpose of object oriented programming?