Home / Programming Questions / JAVA MCQs / Page 5

JAVA MCQs with answers Page - 5

Dear candidates you will find MCQ questions of JAVA here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question

(A) Class.name(“className”)
(B) className.getClassName()
(C) Class.forName(“className”)
(D) className.getClass()

(A) obj.getClass().getObject()
(B) obj.getClass().getMethod()
(C) obj.getClass().getDeclaredField()
(D) obj.getClass().getDeclaredMethod()

(A) new getClass()
(B) getClass().getDeclaredFields()
(C) getClass().getName()
(D) getClass().getFields()

(A) getFields
(B) getDeclaredFields
(C) getDeclaredMethods
(D) getMethods

(A) getFields
(B) getMethods
(C) getDeclaredFields
(D) getDeclaredMethods

(A) Foo object
(B) Calls the getInstance() method of Foo class
(C) class object of Foo
(D) An array of Foo objects

(A) Examine an object’s class at runtime
(B) Examine a class’s field at compile time
(C) Construct an object for a class at runtime
(D) Examine a class’s field and method at runtime

(A) Remote
(B) Serializable
(C) Reader
(D) Cloneable


Forgot username? click here

Forgot password? Click here

Don't have account? Register here.