Multiple Choice
Which of the following statements correctly creates a Scanner object for keyboard input?
A) Scanner kbd = new Scanner(System.keyboard) ;
B) Scanner keyboard(System.in) ;
C) Scanner keyboard = new Scanner(System.in) ;
D) Keyboard scanner = new Keyboard(System.in) ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q23: What will be displayed as a result
Q24: Both character literals and string literals can
Q24: A Java program will not compile unless
Q25: Which Scanner class method reads a String?<br>A)
Q26: What will be displayed as a result
Q29: What will be displayed as a result
Q30: Which of the following cannot be used
Q31: What is the result of the following
Q32: What is the result of the following
Q35: Which of the following is not a