Multiple choice

The fact that any program can print using System.out.print, implies that

  1. system is defined in the package java.lang

  2. system is a class name

  3. out is an object

  4. all of the above

  5. print is a method

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

All of  the above options are correct. Print is a method. Methods have bodies, return types and they can take different types of arguments. Print function is defined in the System class.