Question: How method can be invoked on unknown object?
Options
A : obj.getClass().getDeclaredMethod()
B : obj.getClass().getDeclaredField()
C : obj.getClass().getMethod()
D : obj.getClass().getObject()
Click to view Correct Answer
Reflection API more questions
Which of the following is not a directive in JSP?
Which of the following is not a marker interface?
Which tag is used to set a value of a....
Can servlet class declare constructor with ServletConfig object as an....
How constructor can be used for a servlet?
How to get the class object of associated class using....
What does Class.forName(?myreflection.Foo?).getInstance() return?
What does foo.getClass().getMethod(?doSomething?, null) return?
What is the difference between servlets and applets?^ i. Servlets....
What is used to get class name in reflection?