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
Where are the card layouts used?
Difference between Preemptive scheduling vs. Time slicing?
Is null keyword in java?
What is the difference between synchronized and synchronized block?
What is a war file?
How many static init can you have?
What is the parse method in java?
What are the ways in which a thread can enter the waiting state?
Why are arrays useful in java?
Why is core java important?
What is a method in java?
What is meant by data hiding/encapsulation?
What are the application of stack?
Is null a string or object in java?
Describe how to implement singleton design pattern in struts.