1.

Which of these is used to read a string from the input stream?(a) get()(b) getLine()(c) read()(d) readLine()The question was asked in an interview.This interesting question is from Reading Console Input in chapter I/O & Applets of Java

Answer» RIGHT OPTION is (c) read()

To EXPLAIN I would say: None.


Discussion

No Comment Found

Related InterviewSolutions