Easy learning with example program codes

Java reflection tutorial with examples

Dictionary meaning of reflection: The throwing back by a body or surface of light, heat, or sound without absorbing it.

Java reflection is an API which is used to express code which is able to inspect other code in the same system. It provides the ability to inspect classes, interfaces, fields and methods at runtime, without knowing much about them at compile time. We can modify the runtime behavior of application using reflection. Refection can be used to instantiate new objects, invoke its methods and get or set field values using reflection.

The java.lang and java.lang.reflect packages provide classes for java reflection.

Java reflection tutorial

Industrial Training

We offers Placement Oriented Training on Java, Spring, JSF, Hibernate, PHP, AngularJS, Angular 4, PLSQL, Oracle BI Publisher etc. We also provides Online training, please mail us at


We also provides the Development services for Website Development , Java Development, PHP Development, Android App Development etc. You can contact us on

Copyright © 2019 CodesJava Protection Status SiteMap Reference: Java Wiki