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 different data types?
What is the difference between a checked and an unchecked exception?
What is the maximum size of hashmap in java?
What is exception handling in java?
What are the default and parameterized constructors?
How many arguments can a method have java?
Do I need to import java.lang package any time? Why?
What is difference between static and final?
What are operators and its types?
How do you control extraneous variables?
What is integer parseint?
Why we used vector class?
What is unicode with example?
What is pre increment and post increment in java?
Garbage collection in java?