1.

Which class among the following makes incorrect assumptions?(a) LineNumberInputStream(b) LineNumberReader(c) LineReader(d) LineBufferI got this question during an interview for a job.Question is taken from IO Class in portion Inbuilt Classes of Object Oriented Programming

Answer»

Right OPTION is (a) LineNumberInputStream

Easy EXPLANATION - The LineNumberInputStream class makes false assumptions. The false assumption is that it assumes, all the byte data is a CHARACTER. Which is actually not the case, INSTEAD the character have one byte MEMORY space.



Discussion

No Comment Found

Related InterviewSolutions