WGU D286 Java Fundamentals (ITWS 3172) Comprehensive OA 2024 - Complete Exam Prep Study Guide with Practice Questions & Solutions Java Basics & Program Structure (Questions 1-20) 1. Multiple Choice: Where does a Java program begin executing? A) The first line of the file B) The main() method C) The constructor of the main class D) The init() method Answer>>>: B) The main() method Rationale: In Java, execution begins at the main() method, which serves as the entry point for the program. The Java Virtual Machine (JVM) looks for this specific method signature to start running the application. Key Tip: Remember the exact signature: public static void main(String[] args). Any variation will prevent the program from running. 2. Fill-in-the-Blank: The correct syntax to print text and move to a new line in Java is _______. Answer>>>: System.out.println() Rationale: System.out.println() outputs text to the console and then moves the cursor to the next line, similar to pressing "Enter" after typing. Key Tip: Use println() for line-by-line output and print() when you want multiple items on the same line.3. True/False: System.out.print() automatically adds a newline character after displaying output. Answer>>>: False Rationale: print() displays output and leaves the cursor on the same