Question
Given code snippet
class ReflectionDemo{
public static void main(String... str){
try {
Class cls = Class.forName("java.lang.String[]");
System.out.print(cls.getClass());
} catch (ClassNotFoundException ex) {
System.out.print("Exception Occured");
}
}
}
What is the output?
Answer: Option D
Submit Your Solution Below and Earn Points !
Submit Your Solution Below and Earn Points !
More Questions on This Topic :
Question 6. What are the drawbacks of Java Reflection? ....
Question 8. What is not the advantage of Reflection? ....
Submit Solution