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
K
Q. Annotation type definition looks similar to which of the following?
K
Q. Which version of Java introduced annotation?
Y
Q. How to get the class object of associated class using Reflection?
Y
Q. How method can be invoked on unknown object?
Y
Q. What is used to get class name in reflection?
Y
Q. How private field can be called using reflection?
Y
Q. How private method can be called using reflection?
Y
Q. What does Class.forName(“myreflection.Foo”).getInstance() return?
Y
Q. What is not the advantage of Reflection?
Y
Q. Which of the following is not a marker interface?
Don't have account? Register here.