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 sorting algorithm in java?
Can a constructor call another constructor?
Write a program to check for a prime number in java?
How to use arraylist in java netbeans?
What does the “final” keyword mean in front of a variable? A method? A class?
Can we define static methods inside interface?
What is the difference between a break statement and a continue statement?
Can a vector contain heterogenous objects?
Explain java heap space and garbage collection?
What are constructors in java?
How do you create a reference in java?
What is the importance of main method in Java?
Does importing a package imports its sub-packages as well in java?
Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.
What is a double?