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
Why are global variables used?
What is the use of generics? When was it added to the Java development Kit?
How do you create immutable object in java?
What is the old name of java?
Can we have more than one package statement in source file ?
What is overriding in java?
Differentiate storage classes on the basis of their scope?
Can an interface implement another interface?
What are Normalization Rules? Define Normalization?
How a variable is stored in memory?
How can we avoid including a header more than once?
Is string is a data type in java?
What is a ternary operator in java? What is an interface?
Is int primitive data type?
What is downcasting?