How to create an instance of a class without using "new"
operator? Plz help me out properly.Thank u.
Answer Posted / abhishek thakur
1. Four Ways of Object creation
i)Using "new" operator
ii)Using newInstance Method in Class.forName(class name)
iii)in case of deserialisation
iv)using clone
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you use compareto?
What about features of local inner class?
What is difference between final and immutable?
What are the benefits of operations in java?
Is there a sort function in java?
Difference between serialization and deserialization in java?
What are static variables and functions?
Is this valid in java ? Can we instantiate interface in java?
How many bits is a char?
State differences between C and Java?
what are the high-level thread states? : Java thread
Is java type safe?
What is a class object?
What is json parser in java?
What is a bufferedreader?