Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Interview Questions and Answers | ||||
| ||||
Ans. Class.getInstance doesn't call the constructor whereas if we create an object using new operator , we need to have a matching constructor or copiler should provide a default constructor. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  java   constructor   object creation   default constructor   getinstance   new operator | ||||
Related Questions | ||||
Can we create an object if a Class doesn't have any constructor ( not even the default provided by constructor ) ? | ||||
Which of the following code is correct ? | ||||
Which of the following is not a valid NumberFormat initialization ? | ||||