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 is the syntax for a method reference?
Think about how you would normally call a method.
What purpose do constructor references serve?
It's related to creating new objects.
What is the primary purpose of a method reference?
Think about what method references do.
True or False: A constructor reference uses the syntax ClassName::methodName.
Consider how constructors are instantiated.
Given a list of strings, use a method reference to print them all to the console.
Remember to use the correct method reference syntax.
Create a constructor reference for a HashMap and assign it to a Supplier.
Think about how to instantiate new maps.
5 more questions in this section. Enroll free to practise them all.
Enroll free