
Java Quiz 2- Classes, Collections, Threads

Quiz
•
Computers
•
Professional Development
•
Medium

Nitin Gupta
Used 4+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct definition of a class?
a) An instance of an object
b) A blueprint or prototype for creating objects
c)A method in Java
d) A package in Java
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to refer to the current instance of an object within a class?
a) object
b) this
c) self
d) class
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these best describes "Encapsulation"?
a) Breaking a complex problem into simpler pieces
b) Inheriting properties from a parent class
c) Implementing multiple interfaces
d) Wrapping up of data and methods into a single unit
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can a class have multiple constructors?
Yes
No
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to implement an interface?
a) extends
b) new
c) interface
d) implements
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many interfaces can a Java class implement?
a) None
b) Only one
c) Two
d) As many as needed
7.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
An interface with no methods is known as?
Create a free account and access millions of resources
Similar Resources on Wayground
26 questions
UD1. Características de los lenguajes de marcas

Quiz
•
Professional Development
25 questions
JAVA Quiz 4

Quiz
•
Professional Development
25 questions
Playwright Quiz 1

Quiz
•
Professional Development
25 questions
Тест 1 по дисциплине "Введение в специальность"

Quiz
•
Professional Development
27 questions
Input and output ports

Quiz
•
University - Professi...
26 questions
Setup Mocking

Quiz
•
Professional Development
29 questions
PC FE Quiz

Quiz
•
Professional Development
25 questions
C Language Test 3

Quiz
•
Professional Development
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade