Set - 5

Question 41 :

What is constructor ?

Answer :

A pseudo-method that creates an object. In the Java programming language, constructors are instance methods with the same name as their class. Constructors are invoked using the new keyword.


Question 42 :

What is core packages ?

Answer :

The required set of APIs in a Java platform edition which must be supported in any and all compatible implementations.