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 the exact difference in between Unicast and Multicast object?
What causes memory leak in java?
Do I need java on my pc?
How does a for loop work?
Can we return null in java?
What is a java predicate?
Why set is used in java?
What are peerless components in java programming?
What are the advantages of packages in java?
Why is string buffer better than string ?
Which class represents the socket that both the client and server use to communicate with each other?
What is java util collection?
What are dot operator queries?
Can we declare array without size in java?
When do you get classcastexception?