Search Header Logo

Java IOStreams

Authored by HAREESH KUMAR

Computers

University

Used 39+ times

Java IOStreams
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is FALSE about Java Streams ?

Java defines only two types of streams – Byte stream and character stream.

Like in any other language, streams are used for input and output operations.

Byte stream uses InputStream and OutputStream classes for input and output operation.

Character stream uses InputStream and OutputStream classes for input and output operation.

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of these classes are used by character streams for input and output operations?

InputStream

Writer

Reader

InputOutputStream

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these class contains the methods print() & println()?

System

System.out

BUfferedOutputStream

PrintStream

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to represent end of file in java?

EOF

-1

null

\0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is used to converts the byte-oriented stream into character-oriented stream?

Console

Scanner

InputStreamReader

DataInputStream

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these class is used to create an object whose character sequence is mutable?

String

StringBuffer

Both of the mentioned

None of the mentioned

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The PrintStream class provides methods to?

read data to another stream

Write data to another stream

read data to same stream

write data to same stream

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers