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
What is lambda in java?
Explain differences between checked and unchecked exceptions in java?
What is finally block?
What is a parameter used for?
What is an empty class? What functionality does it offer in Java?
Is there a way to increase the size of an array after its declaration?
What string is utf8?
Why is java so popular?
What is the difference between compile-time polymorphism and runtime polymorphism?
What is the size of boolean variable?
How do you remove duplicates in java?
What about instanceof operator in java?
What is the difference between the paint() and repaint() methods?
What is the size of a string in java?
What are loops in java? What are three types of loops?