Java Serialization and File Handling

Java Serialization and File Handling

University

15 Qs

quiz-placeholder

Similar activities

Computer Systems Quiz

Computer Systems Quiz

University

15 Qs

COGPSY ATTENTION

COGPSY ATTENTION

University

13 Qs

Database Fundamentals Quiz

Database Fundamentals Quiz

University

10 Qs

exception

exception

University

11 Qs

ALGORITMA DAN DASAR PEMROGRAMAN

ALGORITMA DAN DASAR PEMROGRAMAN

University

20 Qs

VISUAL BASIC .NET

VISUAL BASIC .NET

University

10 Qs

Statistics Using R

Statistics Using R

University

10 Qs

mis multiple choice

mis multiple choice

University

20 Qs

Java Serialization and File Handling

Java Serialization and File Handling

Assessment

Quiz

Others

University

Medium

Created by

Jothi Prakash

Used 5+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Java serialization?

It is the process of converting an object into a string of characters

It is the process of converting an object into a stream of bytes

It is the process of converting an object into a stream of integers

It is the process of converting a stream of bytes into an object

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is Java serialization achieved?

By using the java.io.Serialization class

By calling the serialize() method

By implementing the java.io.Serializable interface

By setting the serialization flag to true

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of using Fileinputstream in Java?

To delete a file

To create a new file

To read data from a file

To write data to a file

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a Fileinputstream object in Java?

FileInputStream input = new FileInputStream(file.txt);

FileInputStream input = new FileInputStream(file);

FileInputStream input = new FileInputStream("file.txt");

FileInputStream input = new FileInputStream();

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of using Fileoutputstream in Java?

To create a new file

To write data to a file

To read data from a file

To delete a file

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a Fileoutputstream object in Java?

FileOutputStream.open("filename.txt")

FileOutputStream.write("filename.txt")

FileOutputStream.create("filename.txt")

new FileOutputStream("filename.txt")

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a new file using the File class in Java?

file.addNewFile()

file.createFile()

file.makeNewFile()

file.createNewFile()

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?