Java's 'Hello World': Print Statement & Example


Choose an answer and hit 'next'. You will receive your score and answers at the end.

question 1 of 3

What will the following Java program print on the screen?

Create Your Account To Take This Quiz

As a member, you'll also get unlimited access to over 79,000 lessons in math, English, science, history, and more. Plus, get practice tests, quizzes, and personalized coaching to help you succeed.

Try it risk-free
Try it risk-free for 30 days. Cancel anytime
Already registered? Log in here for access

1. What will the following program print on the screen?

2. How would you compile the following Java program?

Create your account to access this entire worksheet
A Premium account gives you access to all lesson, practice exams, quizzes & worksheets
Access to all video lessons
Quizzes, practice exams & worksheets
Certificate of Completion
Access to instructors
Create an account to get started Create Account

About This Quiz & Worksheet

When creating programs with Java, one thing you will find handy is knowing how to compile and run them. Use this assessment to test your understanding of how to write 'Hello, World!' in Java.

Quiz & Worksheet Goals

The objective of this assessment is to test your understanding of:

  • Printing on screen using Java
  • Compiling Java programs
  • How Java programs are run

Skills Practiced

A few skills tested with this assessment include:

  • Interpreting information - verify that you can read information regarding the 'Hello, World!' Java program and interpret it correctly
  • Knowledge application - use your knowledge to answer questions about using Java programs to print on screen
  • Making connections - use your understanding of how to compile and run Java programs

Additional Learning

Use the lesson that comes with this assessment, Java's 'Hello World': Print Statement & Examples, to improve your understanding of the material of the quiz questions and learn more about:

  • What you need to write and run Java programs
  • Procedures for writing 'Hello, World!' in Java
  • Example coding