Q. Which class is used to read input from the console?

A
Scanner
B
Reader
C
Input
D
ConsoleReader
Solution:

The Scanner class, initialized with System.in, is used to read input from the console.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!