Java Flashcards
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Gaurav Singh
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a Java access modifier?
public
private
internal
protected
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default value of a boolean variable in Java if it’s an instance variable?
true
false
null
0
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to prevent a class from being inherited?
static
final
abstract
private
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of a Java char?
1 byte
2 bytes
4 bytes
Depends on OS
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these exceptions is unchecked in Java?
IOException
SQLException
NullPointerException
FileNotFoundException
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which collection class maintains insertion order in Java?
HashMap
HashSet
LinkedHashMap
TreeMap
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if you try to inherit from a final class?
Compile-time error
Runtime error
The subclass will override it
It will work normally
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
11 questions
Binding
Quiz
•
University
20 questions
Java Quiz 1
Quiz
•
University
15 questions
quiz pertemuan 2 asik ddp
Quiz
•
University
16 questions
Quiz #1
Quiz
•
University
15 questions
Computer Science Quiz
Quiz
•
University
16 questions
LA3.C3: Variables
Quiz
•
9th Grade - University
11 questions
Java Quiz 3 - Array
Quiz
•
University
20 questions
C Programming Unit-1 Test-2
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
