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
What do you understand by access specifiers in Java?
Which sorting algorithm is best in java?
Is an empty arraylist null?
What are different types of classloaders?
What is %d in printf?
Can private members of a base class are inheritable justify?
What is meant by class?
How many types of design patterns are there?
Explain the importance of finally over return statement?
What is java util concurrentmodificationexception?
Explain different ways of creating a thread. Which one would you prefer and why?
What are aggregate functions explain with examples?
How can u increase the heap size in the memory?
Can we have any code between try and catch blocks?
Compare overloading and overriding?