My Report

Advanced Java Online Test – 1


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. Which of the following is not a marker interface?

2. How private field can be called using reflection?

3. What does foo.getClass().getMethod("doSomething", null) return?

4. How private method can be called using reflection?

5. How method can be invoked on unknown object?

6. What is not the advantage of Reflection?

7. What are the components of a marker interface?

8. How to get the class object of associated class using Reflection?

9. What is used to get class name in reflection?

10. What does Class.forName("myreflection.Foo").getInstance() return?


 

Start practicing “1000 MCQs on Java”, and once you are ready, you can take tests on all topics by attempting our “Java Test Series”.

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.