
Quiz#2: Java

Quiz
•
Computers
•
University
•
Hard
Navya Jain
Used 6+ times
FREE Resource
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?
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
PGdP Nebenläufigkeit

Quiz
•
University
12 questions
Threads in C# Quiz

Quiz
•
University
10 questions
java quiz based on interface

Quiz
•
University
15 questions
Unit 2 Inheritance in Java

Quiz
•
12th Grade - University
10 questions
Unit 1 - Classes and Objects

Quiz
•
University
9 questions
Java Interface Quiz

Quiz
•
University
10 questions
Tutorium1

Quiz
•
University
10 questions
Structure of Java Program

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade