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
Is string serializable in java?
Difference between vector and arraylist.
What are multiple inheritances?
Which is better arraylist or vector?
what is the purpose of the runtime class?
Which containers use a flowlayout as their default layout in java programming?
Which collection is best for sorting in java?
How to provide security in java
Where are the local variables stored?
Can I learn java without any programming experience?
Explain some best practices you would apply while using collection in java?
What is the method overriding?
Explain about main thread in java?
How do constructors use this() and super()?
Explain the difference between protected and default access.