Question
a.
getDeclaredFields
b.
getDeclaredMethods
c.
getMethods
d.
getFields
Posted under Java Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. How private field can be called using reflection?
Similar Questions
Discover Related MCQs
Q. What is used to get class name in reflection?
View solution
Q. How method can be invoked on unknown object?
View solution
Q. How to get the class object of associated class using Reflection?
View solution
Q. What does Class.forName(“myreflection.Foo”).getInstance() return?
View solution
Q. What does foo.getClass().getMethod(“doSomething”, null) return?
View solution
Q. Autocloseable was introduced in which Java version?
View solution
Q. What is the alternative of using finally to close resource?
View solution
Q. Which of the below is a child interface of Autocloseable?
View solution
Q. It is a good practise to not throw which exception in close() method of autocloseable?
View solution
Q. What is the difference between AutoCloseable and Closeable?
View solution
Q. What is the use of Flushable interface?
View solution
Q. Which version of java added Flushable interface?
View solution
Q. Does close() implicitly flush() the stream.
View solution
Q. AutoCloseable and Flushable are part of which package?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Java Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!