
Java-oops2
Authored by lawrance r
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to define an abstract method in Java?
static
final
abstract
interface
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the return type of an abstract method in Java?
It can be any valid return type
It must always be void
It must always return an int
Abstract methods cannot have a return type
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about method overloading?
Method names must be different
Method return types must be different
Method overloading is not allowed in Java
Method parameters must be different
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of method overriding?
Two methods with the same name but different parameters in the same class
A subclass redefining a method from its parent class
Two different classes having methods with the same name
A method calling another method
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is required for method overriding to work properly in Java?
The method must have the same name, return type, and parameters in the subclass
The method must have a different name in the subclass
The method must be static
The method must have a different return type
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if a method is marked as final in a class?
It can be overridden
It cannot be overridden
It becomes abstract
It can only be accessed within the same class
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In method overloading, how is the method call resolved?
At runtime
At compile-time
At both compile-time and runtime
None of the above
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
14 questions
LA5.C5: Branching and Subroutines
Quiz
•
9th Grade - University
10 questions
T02: Python - The Basics
Quiz
•
University
15 questions
ENGINEERING DATA ANALYSIS PRELIM
Quiz
•
University
10 questions
Clustering_Pertemuan2_Quiz_Ceria
Quiz
•
University
11 questions
Determining System Requirements
Quiz
•
University
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
10 questions
Planning and Implementation of Information Security
Quiz
•
University
15 questions
Data Security Worksheet
Quiz
•
10th Grade - 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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade