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
What does foo.getClass().getMethod(“doSomething”, null) return?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What does foo.getClass().getMethod(“doSomething”, null) return?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!