MCQs>IT & Programming>Core Java>What is the output of the following program? import java.lang.reflect.Method; class TestImpl { public void method() {} public static void main(String[] args) { Method method = TestImpl.class.getMethod("method", null); System.out.println(method.getName()); } }
Core Java MCQs
What is the output of the following program? import java.lang.reflect.Method; class TestImpl { public void method() {} public static void main(String[] args) { Method method = TestImpl.class.getMethod("method", null); System.out.println(method.getName()); } }
Answer
Correct Answer: Compilation Error
Explanation:
Note: This Question is unanswered, help us to find answer for this one