Answer Posted / bindhu
As my opinion, we can create object of String using 2 ways:
String s=new String("java");
String s="java";
in Other way ,we can clone an object,that will create a
new copy of an object.
or using Class.forName();( Not Sure....)
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Which graphs are functions?
What is operator overloading. Is it is supported in java?
Explain oops concepts in detail?
What is the purpose of garbage collection in java?
What is use of functional interface in java 8? Explain
How thread scheduler schedule the task?
what is the difference between preemptive scheduling and time slicing? : Java thread
What are different data structures in java?
Why we use set in java?
How to access arraylist elements in java?
What is difference between wait and notify in java?
Difference between ‘is-a’ and ‘has-a’ relationship in java?
Can we sort a map in java?
Explain java coding standards for constants?
What is the purpose of the return statement?