
oops

Quiz
•
Other
•
University
•
Hard

Niveditha N
Used 1+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which can have both abstract and non-abstract methods?
Interface
Abstract Class
Enum
None of the above
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What keyword is used to implement an interface?
extend
derive
implement
implements
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which one supports multiple inheritance in Java?
Class
Abstract class
Interface
Constructor
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Can abstract class have private or protected members?
Yes
No
Only public
Only static
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which is true?
Abstract class can implement an interface
Interface can extend a class
Abstract class must be final
Interface can have constructors
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following statements about constructors is TRUE?
Constructors can be inherited
Constructors can be overridden
Constructors cannot be final
Constructors can return a value
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will happen if a subclass overrides a method and gives it more restrictive access?
Code compiles fine
Runtime error
Compile-time error
JVM will ignore it
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
JAVA FUNDAMENTALS

Quiz
•
University
15 questions
Tech quiz Round 1

Quiz
•
University
15 questions
Spring Semester Quiz 6

Quiz
•
University
15 questions
Java Class and Object Quiz

Quiz
•
University
20 questions
Java Basics Quiz

Quiz
•
University
15 questions
Java Programming Quiz

Quiz
•
University
15 questions
Αντικειμενοστραφής Προγραμματισμός TEST

Quiz
•
University
20 questions
Java Simple - 1

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