Which of the following below are abilities of Reflection API in Java?

Options
- Determining state of an object
- both b and c
- Determining duplicate classes
- Determination of the class of an object


CORRECT ANSWER : Determination of the class of an object

Discussion Board
Reflection API

Reflection API is used to determine the class of an object. It provides an interface to the programs which require the ability to examine or modify the runtime behaviour of applications running in JVM (Java Virtual Machine). It allows applications to execute methods that otherwise would be impossible. The following are the uses of Reflection API:

1. Extensibility Features
2. Class Browsers and Visual Development Environments
3. Debuggers and Test Tools

Rohit Sharma 08-9-2014 07:58 PM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement