how can u create the object with out new operator
Answers were Sorted based on User's Feedback
Answer / md. abid hossain
In 3 ways..
1)Using a Static Factory Method
ABC.getInstance();
2)Using newInstance() method...
class A=(A)Class.forName("A").newInstance();
3)Using clone() method.
| Is This Answer Correct ? | 11 Yes | 2 No |
how to handle exceptions in ejb?
What is string in java is it a data type?
Describe inheritance as applied to java?
What is stringreader?
Explain an algorithm to find depth of a binary tree.
0 Answers Akamai Technologies,
What is the use of predicate in java 8?
explain copyonwritearraylist and when do we use copyonwritearraylist?
whst is encapsulation?when u encpsulate actually while devoloping code?
Can constructor be synchronized?
How many types of keywords are there?
Is node a data type in java?
Why is singleton not thread safe?