Question: How method can be invoked on unknown object?

Options

A : obj.getClass().getDeclaredMethod()

B : obj.getClass().getDeclaredField()

C : obj.getClass().getMethod()

D : obj.getClass().getObject()

Click to view Correct Answer

Previous || Next

Reflection API more questions

Which of the following is not a directive in JSP?

Which of the following is not a marker interface?

Which tag is used to set a value of a....

Can servlet class declare constructor with ServletConfig object as an....

How constructor can be used for a servlet?

How to get the class object of associated class using....

What does Class.forName(?myreflection.Foo?).getInstance() return?

What does foo.getClass().getMethod(?doSomething?, null) return?

What is the difference between servlets and applets?^ i. Servlets....

What is used to get class name in reflection?

Annotations more Online Exam Quiz

Design Patterns

Java Beans

JDBC

JSP

JSP Elements

Servlet

Session Management

Web application

Abrasive Jet Machining - Introduction and Machining system

Abrasive Water Jet Machining - Introduction