Constructors And Methods - Study Mode

[#61] Which of the following statements is correct?
Correct Answer

(A) Public method is accessible to all other classes in the hierarchy

[#62] Which of this statement is incorrect?
Correct Answer

(D) All object of a class are allotted memory for the methods defined in the class

[#63] Which concept of Java is achieved by combining methods and attribute into a class?
Correct Answer

(A) Encapsulation

[#64] What is false about constructor?
Correct Answer

(C) Constructor can have a return type

[#65] Which of these packages contains the exception Stack Overflow in Java?
Correct Answer

(A) java.lang