
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Linking Expressions (Prototyping in Design Thinking)
Quiz
•
University
10 questions
UAS Pemrograman Komputer dan Sistem Otomatisasi
Quiz
•
University
10 questions
Illumination and Lighting Principles Quiz
Quiz
•
University
10 questions
quiz
Quiz
•
University
10 questions
Quick Quiz (Hydrology)
Quiz
•
University
11 questions
1.1 - OnShape Overview
Quiz
•
10th Grade - University
10 questions
Aircraft Structure Chapter 5
Quiz
•
University
10 questions
CNS Lab Viva Questions_B2 Batch
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Engineering
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University
