Mastering Java 2025 – 400 Free Practice Questions to Pass the 'Thinking in Java' Exam

Question: 1 / 510

What output is produced when invoking operations on the proxied null object for SnowRemovalRobot?

A list of operations performed by SnowRemovalRobot

A NotSupportedException

An empty list

A & D incorrect because they do not return anything and would just add an additional step.

B is incorrect because even though the null object pattern throws a NotSupportedException, since it is a proxy, it would return the same output as the original SnowRemovalRobot which is an empty list.

Get further explanation with Examzify DeepDiveBeta

Detailed logging of each method call

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy