
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
10 questions
Computer Architecture

Quiz
•
University
10 questions
Java MVC Framework Quiz

Quiz
•
University
10 questions
FOS Ch:2 Part II (QUIZ 6)

Quiz
•
University
8 questions
OS-Multithreading

Quiz
•
University
10 questions
Online Quiz on Unit-2

Quiz
•
University
15 questions
Unit-III-Java -Thread 2

Quiz
•
University
12 questions
Threads in C# Quiz

Quiz
•
University
9 questions
Java Interface Quiz

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade