Quiz - Workshop on Java

Quiz - Workshop on Java

Professional Development

15 Qs

quiz-placeholder

Similar activities

Java Review

Java Review

Professional Development

19 Qs

LATHE (16/06/2025)

LATHE (16/06/2025)

Professional Development

20 Qs

Machinist Grinder 4th Sem - NSQF - Module 4 : Thread grinding

Machinist Grinder 4th Sem - NSQF - Module 4 : Thread grinding

Professional Development

16 Qs

PJP Apr 23

PJP Apr 23

Professional Development

10 Qs

Java Thread Dr LJK

Java Thread Dr LJK

Professional Development

14 Qs

interface and abstract class

interface and abstract class

Professional Development

11 Qs

BSAIT 1-2 QUIZ

BSAIT 1-2 QUIZ

Professional Development

20 Qs

Module 8 - Screw Cutting on Lathe

Module 8 - Screw Cutting on Lathe

Professional Development

16 Qs

Quiz - Workshop on Java

Quiz - Workshop on Java

Assessment

Quiz

Professional Development

Professional Development

Medium

Created by

Rugved Deolekar

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of Java generics?
To allow type casting between different classes.
To provide a way to implement multiple inheritance.
To enable type-safe collections and classes.
To allow runtime type determination.

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is type erasure in the context of Java generics?
The process of removing generic type information at runtime
The process of converting generic types to their raw types
The process of replacing type parameters with their bounds or Object
All of the above

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these classes is part of the Java Collections Framework?
HashMap
HashSet
ArrayList
All of the above

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these methods is not part of the Collection interface in Java
add(E e)
clear()
get(int index)
isEmpty()

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these classes does not implement the List interface in Java
ArrayList
HashSet
Vector
LinkedList

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which method is used to start a thread in Java?
run()
start()
execute()
launch()

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What happens when two threads try to access a synchronized method at the same time in Java? 
One thread will be allowed to enter the method, while the other thread will be blocked until the first thread exits the method.
Both threads will be allowed to enter the method simultaneously.
One thread will be allowed to enter the method, while the other thread will be terminated.
Both threads will be blocked and neither will be able to enter the method.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?