
Exception, Abstraction
Quiz
•
Engineering
•
University
•
Practice Problem
•
Hard
Arti Sonawane
Used 1+ times
FREE Resource
Enhance your content in a minute
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of an abstract method?
To define static behavior
To hide all functionality
To provide a method without implementation
To override superclass method
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of exception is NullPointerException?
Checked
Unchecked
Compile-time
Custom
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to manually throw an exception?
throws
throw
exception
raise
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about interfaces in Java?
interfaces cannot have methods
interfaces can have constructors
interfaces can have static and default methods
Interface methods are private by default
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about abstract classes in Java?
An abstract class can be instantiated
An abstract class cannot have any method
An abstract class can have both abstract and non-abstract methods
All methods in an abstract class must be abstract
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not true about static methods?
They can access only static variables directly
They can call non-static methods directly
They belong to the class, not objects
They can be called without creating an object
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can an abstract method be private?
Only if the class is final
Only in interfaces
yes
no
Similar Resources on Wayground
10 questions
Computer Science Workshop Quiz
Quiz
•
University
10 questions
MSS Machine Learning
Quiz
•
University
10 questions
APP R1
Quiz
•
University
10 questions
Induction Motor Quiz
Quiz
•
University
10 questions
OOP_1
Quiz
•
University
10 questions
Nuclear Lifecycle 2
Quiz
•
University
11 questions
Advanced Aerodynamics MCQ
Quiz
•
University
12 questions
Quiz tentang Intensifikasi Proses
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Engineering
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
