June 2017
Beginner
1296 pages
69h 23m
English
We encourage you to use JShell to do Exercises 25.1–25.43 after reading Sections 25.3–25.4. We’ve included the answers for all these exercises to help you get comfortable with JShell/REPL quickly.
25.1 Confirm that when you use System.out.println to display a String literal, such as "Happy Birthday!", the quotes ("") are not displayed. End your statement with a semicolon.
25.2 Repeat Exercise25.1 , but remove the semicolon at the end of your statement to demonstrate that semicolons in this position are optional in JShell.
25.3 Confirm that JShell does not execute a // end-of-line comment.
25.4 Show that an executable statement enclosed in a multiline comment—delimited by /* and */—does not execute.
25.5 Show what ...