What does foo.getClass().getMethod(“doSomething”, null) return?
What does foo.getClass().getMethod(“doSomething”, null) return? Correct Answer Method is returned and we can call the method as method.invoke(foo,null);
foo.getClass().getMethod() returns a method and we can call the method using method.invoke();
মোঃ আরিফুল ইসলাম
Feb 20, 2025