Interfaces And Abstract Classes - Study Mode

[#1] Which of these is a method can generate a boolean output?
Correct Answer

(D) nextBoolean()

[#2] Which of these keywords is used to define packages in Java?
Correct Answer

(C) package

[#3] Which of the following reference types cannot be generic?
Correct Answer

(A) Anonymous inner class

[#4] Which of these classes is not included in java.lang?
Correct Answer

(C) Array

[#5] Which of these is a super class of Character wrapper?
Correct Answer

(D) Number