filmov
tv
Java Interview Question And Answer What is Reflection In Java Explain with an Example
![preview_player](https://i.ytimg.com/vi/9HZYc06GqG8/maxresdefault.jpg)
Показать описание
Reflection is a very useful approach to deal with the Java class at runtime,
It can be use to load the Java class, call its methods or analysis the class at runtime.
"Reflection" is a java language's ability to inspect and dynamically call classes, methods, attributes, etc. at runtime
public class App {
try{
}catch(){
}
}
appClassName = com.ID.ReflectionTestClass
After 6 months ,a new feature change requested by customer:
appClassName = com.ID.ReflectionNewFeatureClass
No Need To Compile the code,Dynamically we can plugin new code into existing application using Reflection.
A Job Portal
Other Top Job Portals
Are you looking for a new Job ?