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 core java used for?
How to overcome the exception object reference not set to an instance of object?
What is a locale?
What is JVM and is it platform independent?
What makes a function well defined?
What if I write static public void instead of public static void in java?
What is the difference between jdk and jre?
What are recursive functions?
Enlist few advantages of inheritance?
Why volatile is used in java?
What is meant by JVM? Is JVM platform independent or not?
Why doesn't the java library use a randomized version of quicksort?
Is main is a keyword?
Why is core java important?
What does n mean in java?