1.

Which of these is a super class of wrappers Long, Character & Integer?(a) Long(b) Digits(c) Float(d) NumberThis question was addressed to me in an online quiz.This intriguing question comes from Java.lang in section Exploring java.lang & java.io of Java

Answer» RIGHT ANSWER is (d) Number

To elaborate: Number is an abstract class CONTAINING subclasses Double, Float, Byte, Short, INTEGER and Long.


Discussion

No Comment Found

Related InterviewSolutions