Vidyalelo
Java Programming · Q77

Java Session Management and JSP

Programming · Java Programming · question 77

Q77

What does foo.getClass().getMethod("doSomething", null) return?

A.
doSomething method instance
B.
Method is returned and we can call the method as method.invoke(foo,null);
Answer
C.
Class object
D.
Exception is thrown

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board