Which line creates a new <code>Scanner</code> object reading from System.in?
- A
Scanner s = Scanner.in;
- B
Scanner s = new Scanner();
- Ccheck_circle
Scanner s = new Scanner(System.in);
- D
Scanner s = System.scanner;
Explanation
Constructor takes the input stream; <code>new</code> allocates the object.