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 are wrapped classes in java programming?
What classes of exceptions may be caught by a catch clause in java programming?
What are three advantages of using functions?
Can keyword be used as identifier?
List the interfaces which extends collection interface?
How do you pass by reference?
Which of the following is not an isolation level in the JDBC
What is the difference between hashset and treeset in java?
Are arrays static in java?
What is the meaning of variable in research?
List some important characteristics on jre
What are the four versions of java?
What do you understand by classes in java?
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?
What are the data types supported by java?