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 is recursion in java
Give me some null interfaces in java?
How do you replace a string in java?
Explain the use of javap tool.
What is temp in java?
When object is created and destroyed?
What is difference between public static and void?
What does sprintf return?
What are the different types of inner classes?
Which methods are used during serialization and deserialization process?
Explain inner classes ?
What is a byte string?
What is array and arraylist in java?
Which one of the following suits the description of a string better: derived or primitive?
What is the method in java?