Java Reflection API


Java Reflection API

Reflection API in Java - posted by Amit Satpute

What is Reflection API in Java?

The Reflection API allows Java code to examine classes and objects at run time. The new reflection classes allow you to call another class's methods dynamically at run time. With the reflection classes, you can also examine an instance's fields and change the fields' contents.

The Reflection API consists of the java.lang.Class class and the java.lang.reflect classes: Field, Method, Constructor, Array, and Modifier.

Reflection API in Java - posted by Vidya Sagar

What is Reflection API in Java?

Reflection is a process that is used to examine the runtime behaviour of a running application in the JVM. Reflection API allows the creation of an instance of a class whose name is not known until runtime. The custom processing classes can be plug-in into the system, without recompiling the code again. All these processing class are derived by the base class ‘MassageProcessor’.


Write your comment - Share Knowledge and Experience

Related Java links

What is an abstract class? | Explain the difference between abstract class and interfaces.

Answer: An abstract class defines an abstract concept which can’t be.....

What is an interface?

Answer: An interface is a set of method definition without implementation. It is a protocol....

Explain JVM (Java virtual machine) and JIT (Just in compilation).

Answer: JVM is a virtual computer that runs the compiled java program. JVM is software.....

Explain how to implement polymorphism in JAVA.

Answer: Capacity of a method to do different things based on the object that......

Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us