Abstract class can have

15. Java Abstract Classes

Quiz
•
Computers
•
University
•
Hard

A Vijay Kumar
Used 79+ times
FREE Resource
22 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Abstract methods
Methods with code implementation
Used to create objects
Used to create subclasses
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an abstract method?
An abstract method is any method in an abstract class.
An abstract method is a method which cannot be inherited.
An abstract method is one without a body that is declared with the reserved word abstract.
n abstract method is a method in the child class that overrids a parent method.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can an abstract class define both abstract methods and non-abstract methods?
No—it must have all one or the other.
No—it must have all abstract methods.
Yes—but the child classes do not inherit the abstract methods.
Yes—the child classes inherit both.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these class relies upon its subclasses for complete implementation of its methods?
Object class
abstract class
ArrayList class
None of the mentioned
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these keywords are used to define an abstract class?
Abstract
abstract
abstract class
abst
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is FALSE about abstract classes in Java
If we derive an abstract class and do not implement all the abstract methods, then the derived class should also be marked as abstract using 'abstract' keyword
Abstract classes can have constructors
A class can be made abstract without any abstract method
A class can inherit from multiple abstract classes.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statement(s) with regard to an abstract class in JAVA is/are TRUE ? I. An abstract class is one that is not used to create objects. II. An abstract class is designed only to act as a base class to be inherited by other classes.
Only I
Only II
Neither I nor II
Both I & II
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Quiz Pemrograman Lanjut 2022/2023

Quiz
•
University
22 questions
Creational Design Pattern

Quiz
•
University
20 questions
Java, part I

Quiz
•
11th Grade - University
20 questions
UTS OOP

Quiz
•
University
20 questions
JAVA Basics Quiz

Quiz
•
University
20 questions
Quiz 2 PBO

Quiz
•
University
20 questions
Technical Quiz R1

Quiz
•
University
20 questions
OOPs in Python

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade