Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What does the Reflection API allow you to do?
Think about examining code in action.
Name one key class in the Reflection API.
These are part of dynamic programming.
What does the Reflection API allow you to manipulate?
Focus on what aspects the API covers.
True or False? Reflection can access private members of a class.
Think about how encapsulation works.
Write a Java program that uses reflection to print all the method names of a given class, including private methods.
Think through how you can combine what you've learned about method accessibility.
Create a scenario where reflection would be a poor choice to use in a real application and justify why.
Weigh the trade-offs discussed in earlier sessions about flexibility vs. performance.
6 more questions in this section. Enroll free to practise them all.
Enroll free