Constructors And Methods - Study Mode

[#1] Which of the following is a method having same name as that of it's class?
Correct Answer

(D) constructor

[#2] Which concept of Java is a way of converting real world objects in terms of class?
Correct Answer

(C) Abstraction

[#3] Which component is responsible to optimize bytecode to machine code?
Correct Answer

(C) JIT

[#4] What is it called where child object gets killed if parent object is killed?
Correct Answer

(B) Composition

[#5] Which of these keywords is used to make a class?
Correct Answer

(A) class