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.
|Java - Interview Questions and Answers|
|Ans. Though It's often confused with each other, Object Creation ( Instantiation ) and Initialization ( Construction ) are different things in Java. Construction follows object creation.|
Object Creation is the process to create the object in memory and returning its handler. Java provides New keyword for object creation.
Initialization is the process of setting the initial / default values to the members. Constructor is used for this purpose. If we don't provide any constructor, Java provides one default implementation to set the default values according to the member data types.
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  java   oops   constructor   object instantiation|
|What are the common uses of "this" keyword in java ?|
|Can we use both "this()" and "super()" in a constructor ?|
|Why every object constructor automatically call super() in Object before its own constructors?|
|Can constructors be synchronized in Java ?|
|What are constructors and Destructors in Java ?|
|Does Constructor creates the object ?|
|Are constructors inherited? Can a subclass call the parent's class constructor? When?|
|Difference Between this() and super() ?|
|Which of the following is false about Constructors ?|