1.

Which object can be used to access the standard input?(a) System.inner(b) cin(c) System.stdin(d) console.inputThe question was posed to me at a job interview.My enquiry is from Object Use topic in division Object of Object Oriented Programming

Answer»

Correct OPTION is (b) cin

Explanation: OBJECT cin can be USED to take input from the standard input. It is used in C++. In java we can use System.in for the standard input stream. The SYNTAX CHANGES from language to language.



Discussion

No Comment Found

Related InterviewSolutions