Examveda

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);

C. Class object

D. Exception is thrown

Answer: Option B


This Question Belongs to Java Program >> Session Management, JSP And API

Join The Discussion

Related Questions on Session Management, JSP and API