1.

How method can be invoked on unknown object?(a) obj.getClass().getDeclaredMethod()(b) obj.getClass().getDeclaredField()(c) obj.getClass().getMethod()(d) obj.getClass().getObject()

Answer» The correct answer is (c) obj.getClass().getMethod()

For explanation: obj.getClass().getMethod is used to invoke a method on unknown object obj.


Discussion

No Comment Found

Related InterviewSolutions