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
can any body body expalin best definitions & best real time exaples for opps concepts.
How does map works in java?
What is the generic class?
What is array pointers ?
What is polymorphism in java? What are the kinds of polymorphism?
What is a char in java?
What are the wrapped, classes?
What are the 4 types of research methods?
What is the difference between dom and sax parser in java?
What happens when heap memory is full?
What is the purpose of garbage collection in java?
What do you mean by chromounits in java8?
How do you change an int to a string?
Can we declare array without size in java?
What is string data type?