Answer Posted / ishaque
There are many ways to create an object in java. They are:
By new keyword
By newInstance() method
By clone() method
By factory method etc.
| Is This Answer Correct ? | 15 Yes | 1 No |
Post New Answer View All Answers
What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
Can we write method inside a method in java?
Why we go for collections in java?
How do I write a self declaration?
What does provide mean construction?
What is difference between == and === in js?
Explain the difference between serializable and externalizable in java?
What are peerless components in java programming?
Difference between object and reference?
Where is jre installed?
what is meant by Byte code concept in Java?
What are the steps involved to create a bean?
Why doesn't the java library use a randomized version of quicksort?
can used Protected Class outside Function.?
If two threads have same priority which thread will be executed first ?