Java bootcamp · Lab 01

Hello, Java

easyOutput5 minLesson: Java Output

Read the question, write Java on the right, then Run or Check.

QuestionHint and solution stay closed until you open them

Print exactly Hello, Java then a newline.

Examples

Example 1
Input
(none)
Output
Hello, Java
Hint
  1. public class Main
  2. System.out.println("Hello, Java");
Show correct code

Peek only after you have tried. You can still Check your own version.

public class Main {
  public static void main(String[] args) {
    System.out.println("Hello, Java");
  }
}
Main.javaJava 21 · javac · Ctrl + Enter runs
ResultIdle
Run to see output. Check grades the tests.