Question: What is used to get class name in reflection?

Options

A : getClass().getName()

B : getClass().getFields()

C : getClass().getDeclaredFields()

D : new getClass()

Click to view Correct Answer

Previous || Next

Reflection API more questions

How method can be invoked on unknown object?

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....

Which method is used to get three-letter abbreviation for locale's....

Which of the following code is used to get an....

How is the dynamic interception of requests and responses to....

When destroy() method of a filter is called?

Which are the session tracking techniques?^ i. URL rewriting^ ii.....

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