1.

Which of these class have only one field ‘TYPE’?(a) Void(b) Process(c) System(d) RuntimeThis question was posed to me in an online quiz.This key question is from Java.lang topic in chapter Exploring java.lang & java.io of Java

Answer»

Right choice is (a) VOID

The explanation: The Void class has one FIELD, TYPE, which holds a REFERENCE to the Class OBJECT for the type void.



Discussion

No Comment Found

Related InterviewSolutions