Java - Interview Questions and Answers on Reflection API

Q1.  What is reflection ?

Ans. It is the process of examining / modifying the runtime behaviour of an object at runtime.

Q2.  Is It Good to use Reflection in an application ? Why ?

Ans. no, It's like challenging the design of application. 

Q3.  Why is Reflection slower ?

Ans. Because it has to inspect the metadata in the bytecode instead of just using pre compiled addresses and constants.

Subscribe to Java News and Posts. Get latest updates and posts on Java from
Enter your email address:
Delivered by FeedBurner
comments powered by Disqus