Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What class in java.lang.reflect represents methods?
Think of how methods are defined in a class.
Name one purpose of the Class object.
What can you find out about a class?
What does the Method class do in the Reflection API?
Think about what actions you can perform with class methods.
True or False: The Class object can be used to create new instances of a class.
Remember the flexibility that the Class object provides.
Create a program using Reflection to dynamically access and modify a private field of an object.
Review how you can bypass the access controls using Reflection.
Design a test framework that uses Reflection to invoke test methods marked with a custom annotation.
Think of how annotations can work together with Reflection in your framework.
4 more questions in this section. Enroll free to practise them all.
Enroll free