Multiple choice technology programming languages

Which of the following classes is used to perform basic console I/O?

  1. System

  2. SecurityManager

  3. Math

  4. Runtime

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

The System class in java.lang provides the standard input, output, and error streams (System.in, System.out, System.err) used for basic console I/O. It also contains utility methods. SecurityManager is for security policies, Math is for mathematical functions, and Runtime is for interacting with the runtime environment. Option A is correct.