1.

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» C. Class object


Discussion

No Comment Found