Tim Holloway wrote:You're missing a parenthesis on line 3.
Tim Holloway wrote:
But it does return an ImmutableCollection
Paul Clapham wrote:The first one constructs a Long object and assigns a reference to that object to a Long variable. That is a simple and normal thing to do in Java.
Paul Anilprem wrote:1. No, you can't have a restroom break.
2. No, you can't have a physical scratchpad. The exam application provides a virtual notepad on which you can type or draw using the mouse.
Here are some more details about the exam that you might find helpful.
Campbell Ritchie wrote:if you try to convert a String from all lower case to all lower case, why not reuse the same object?
Stephan van Hulst wrote:This rule changed in Java 16, so you may be using a newer Java version.
When practicing for an exam for a specific Java version, it's strongly recommended that you use exactly that Java version, and not older or newer. Either you need to downgrade your Java version, or you need to get a newer study guide.