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 is an anonymous object?
Think about how we call methods in one line.
Give an example of creating an anonymous object.
Remember the syntax of instantiating a class.
What is an anonymous object?
Remember the definition we discussed.
Can anonymous objects be accessed after creation?
Think about the weeks we discussed the specifics of their usage.
Write a Java method that accepts an anonymous object as a parameter and describes its characteristics.
Consider how the object behaves when accessed in the method.
Create a short Java program that demonstrates the limitations of anonymous objects.
Think about trying to interact with an object after its immediate use.
6 more questions in this section. Enroll free to practise them all.
Enroll free