NEW
Font size
WorksheetsStreams
Total questions: 10
Worksheet time: 5mins
Which of these class is used to read characters and strings in Java from console?
StringReader
BufferedReader
InputStreamReader
BufferedStreamReader
Which of these stream contains the classes which can work on character stream?
InputStream
OutputStream
Character Stream
All of the mentioned
Which of these method of FileReader class is used to read characters from a file?
read()
scanf()
get()
getInteger()
Which of these is a type of stream in Java?
Integer stream
Byte Stream
Short Stream
Long Stream
Which of these classes are used by character streams for input and output operations?
InputStream
InputOutputStream
ReadStream
Writer
Which package contains a large number of stream classes that provide capabilities for processing all types of data?
java.awt
java.io
java.util
java.net
Which of the following method(s) not included in InputStream class?
available( )
reset( )
flush( )
close( )
Which of these class contains the methods print() & println()?
System
System.out
BUfferedOutputStream
PrintStream
Which of these methods can be used to writing console output?
print()
println()
write()
All of the mentioned
Which exception is thrown by read() method?
IOException
InterruptedException
SystemException
SystemInputException
