Mastering Java: The Ultimate Quiz for 'Thinking in Java'

Disable ads (and more) with a membership for a one time $2.99 payment

Question: 1 / 50

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.

Detailed logging of each method call

Next

Report this question