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
Why java is a platform independent? Explain
What is the common usage of serialization? What exceptions occur during serialization?
how do I create a runnable with inheritance? : Java thread
Can java list be null?
How do you define a singleton class?
When is finally block not called?
What does the string method compareto () do?
What are static initalizers in java ?
What is the difference between hashmap and hashtable in java?
How many wrapper classes are there in java?
What is dot operator?
Which is the best approach for creating thread ?
What is method overloading with type promotion?
What is boolean query?
What is the default value of the local variables?