
JAVA - Day5
Authored by Chitra Muthu
Information Technology (IT)
University
Used 5+ times

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
30 sec • 2 pts
Which class in Java is used to read character data from a file?
FileReader
FileWriter
FileInputStream
PrintWriter
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which of the following is true about FileWriter?
It is used for writing character data to a file.
It is used for writing byte data to a file.
It reads character data from a file.
It reads byte data from a file.
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which class provides efficient reading of characters, arrays, and lines?
FileWriter
FileReader
BufferedWriter
BufferedReader
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
: What is the primary advantage of using BufferedWriter over FileWriter?
It allows faster writing by using a buffer.
It can read data from the console.
It supports serialization.
It is used for reading object data.
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
How can you create a thread in Java?
By extending the Thread class.
By implementing the Runnable interface.
By using a lambda expression.
All of the above.
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which method is called when a thread starts?
run()
start()
execute()
init()
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which of the following is not a valid thread state in Java?
New
Running
Waiting
Pending
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
POST-TEST
Quiz
•
University
15 questions
Recap Handout 3 & 4
Quiz
•
6th Grade - University
10 questions
10 Repaso ofimatica
Quiz
•
10th Grade - University
15 questions
Quiz #2
Quiz
•
University
15 questions
Table,Image formatting
Quiz
•
5th Grade - University
10 questions
Quiz Meet 2 Mini SC Programing
Quiz
•
University
10 questions
QUIZ-1 KELAS XI
Quiz
•
University
12 questions
Network Technology (BSIT 4)
Quiz
•
University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University