1).what is the difference between below examples
String s="vijay";
String s=new String("vijay");
Answer Posted / uday
Hi All,
Here one object is stored in the heap and you said that
you can change that, but bydefault String objects are
immutable(ReadOnly), how can u change it?
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is a lock or purpose of locks in java?
Can we execute a program without main?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
Why java is considered as platform independent?
What is an interface in java?
What is meant by tab pans?
Does printwriter create a file?
How do you make an arraylist empty in java?
What are methods of a class?
What is the list interface in java programming?
What is bool mean?
Is namespace same as package in java?
Explain the difference between comparator and comparable in java?
Define interface in java?
What is java objectoutputstream?