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
Explain when we should make an instance variable private.
What is a local block?
What are decalarations?
Can a class extend more than one class?
Can we make the abstract methods static in java?
What is an example of a conditional statement?
What is hash in java?
What is super constructor?
How to check if linked list contains loop in java?
When is the garbage collection used in Java?
What is parseint?
What are the types of casting?
What is finally and finalize in java?
How do generics work?
Why arraylist is used in java?