Question: What does foo.getClass().getMethod(?doSomething?, null) return?
Options
A : doSomething method instance
B : Method is returned and we can call the method as method.invoke(foo,null);
C : Class object
D : Exception is thrown
Click to view Correct Answer
Reflection API more questions
Can servlet class declare constructor with ServletConfig object as an....
How constructor can be used for a servlet?
How method can be invoked on unknown object?
How to get the class object of associated class using....
What does Class.forName(?myreflection.Foo?).getInstance() return?
What is the difference between servlets and applets?^ i. Servlets....
What is used to get class name in reflection?
Which method is used to get three-letter abbreviation for locale's....
Which of the following code is used to get an....
How is the dynamic interception of requests and responses to....