
Quiz#2: Java
Authored by Navya Jain
Computers
University
Used 6+ 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 • 5 pts
What will be the output of the following Java code?
32
33
24
25
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which environment variable is used to set the Java path?
MAVEN_Path
JavaPATH
JAVA
JAVA_HOME
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which method must be implemented by a class that implements the Runnable interface?
run( )
start( )
main( )
execute( )
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What does the hashCode( ) method in Java return?
The memory address of the object
The size of the object
An integer representation of the object
A string representation of the object
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the role of the `@FunctionalInterface` annotation in Java?
It allows a class to be used in lambda expressions.
It enforces that the interface has exactly one abstract method.
It makes the interface eligible for serialization.
It automatically generates default methods for the interface.
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What does the `ForkJoinPool` class in Java do?
It provides a thread pool optimized for divide-and-conquer algorithms.
It allows concurrent access to a shared resource.
It synchronizes multiple threads.
It blocks threads until they are explicitly woken up.
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of these packages contains the exception Stack Overflow in Java?
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
10 questions
TOOLS FOR AD & TECHNOLOGY DEVELOPMENT (W4-W6)
Quiz
•
University
15 questions
HTML
Quiz
•
University - Professi...
10 questions
HT3.2- Validation and Reliability
Quiz
•
8th Grade - University
10 questions
Understanding Email, Contacts and Calendaring
Quiz
•
University
12 questions
Python Quiz 1.4
Quiz
•
University
10 questions
Tree and Planar Graph
Quiz
•
University
10 questions
CodeMonkey for B.Ed IT
Quiz
•
University
10 questions
Android
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