IO Stream & Multithreading

IO Stream & Multithreading

University

13 Qs

quiz-placeholder

Similar activities

github

github

University

13 Qs

p2rt

p2rt

7th Grade - University

10 Qs

C Programming Day-10

C Programming Day-10

University

10 Qs

Programming Languages Chapter 1 & 2 Quiz Review

Programming Languages Chapter 1 & 2 Quiz Review

University

16 Qs

Computer Science Workshop Quiz

Computer Science Workshop Quiz

University

10 Qs

Quiz sobre Simulación

Quiz sobre Simulación

University

13 Qs

Servlet Wipro

Servlet Wipro

University

15 Qs

Kuis Pelatihan Pertemuan 5 (3D Printing)

Kuis Pelatihan Pertemuan 5 (3D Printing)

University

15 Qs

IO Stream & Multithreading

IO Stream & Multithreading

Assessment

Quiz

Engineering

University

Medium

Created by

Arti Sonawane

Used 1+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a character stream class in Java?

FileInputStream

FileOutputStream

FileReader

ByteArrayInputStream

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which class is used for object serialization in Java?

ObjectStream

ObjectOutputStream

ObjectInput

FileStream

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not true about BufferedReader?

It is a subclass of Reader

It provides buffering for character input stream

It can read a line using readLine()

It can write characters to a file

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does transient keyword do in Java I/O?

Allows variable to be serialized

Prevents variable from being serialized

Makes a variable static

Makes variable thread-safe

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which interface must be implemented to create a thread in Java?

Runnable

Thread

RunnableThread

Executor

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the join() method in Java threads?

Terminates the thread

Waits for a thread to die

Pauses the thread forever

Interrupts the thread

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method pauses a thread for a specified time?

wait()

sleep()

pause()

delay()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?