TODAY JAVA SCHOOL

In java school, programming, design, computer general knowledge, web application, software, web services, social media, digital marketing, oops, concept of programming language, oops feature, console media, graphics medium, first programming, c, c ++ , Java, PHP, SQL, MySQL, HTML, HTML_5, J_query, JavaScript, Bootstrap, Framework, images with logos, examples, shared and explained.

https://www.amazon.in/b?node=26373545031&linkCode=ll2&tag=1234567801cdb-21&linkId=3b9882431b00409b44141e0344b35a15&language=en_IN&ref_=as_li_ss_tl

Breaking

Tuesday, 14 April 2020

Java Reflection API | Java Reflection API In Hindi

Java Reflection API


Java Reflection is a process of examining or modifying the run time 

behavior of a class at run time.
The java.lang.Class class provides many methods that can be used to get metadata, examine and change the run time behavior of a class.The java.lang and java.lang.reflect packages provide classes for java reflection.

java reflection API Example

Fig: Java Reflection API

Where it is used

The Reflection API is mainly used in:
  • IDE (Integrated Development Environment) e.g. Eclipse, MyEclipse, NetBeans etc.
  • Debugger
  • Test Tools etc.

Example of Reflection API in java


     class Simple{}  

     
      class Test{  
      
      public static void main(String args[]){  
      
       Class c=Class.forName("Simple");  
       
       System.out.println(c.getName());  
     
        }  
      }  


Output:

             simple

No comments:

Post a Comment