This week's book giveaway is in the Programmer Certification forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Campbell and me already asked you in previous threads to add more context.
This is a general Java certification forum and not all people here have the book, so please add more details -- question stem, options, and we will be happy to discuss.
Thank you for your suggestion and sorry of my thread wasn't easily accessible for those without the book. I'm logging documentation defects as requested: https://www.selikoff.net/ocp11-1/. This particular thread specifically deals with the answer to question 3 of chapter 1.
As you can see from the screen shot single-file source code executions work with both JDK and user defined classes. You need to know this for the certification exam. I hope this helps.
I saw this screenshot in another thread, I assume the question tests running directly java source? Still lack of the question stem to evaluate if the wording is wrong or requires improvement.