
Java Quiz 2

Quiz
•
Computers
•
University
•
Medium
Navina Robinson
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is passed when an object is passed to a method in Java?
A new copy of the object
A reference to the original object
A copy of the object reference
The actual object itself
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is required for a recursive method to terminate correctly?
A loop
A base case
A class constructor
A static keyword
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the static keyword in Java indicate?
method or variable belongs to an instance of the class
method or variable belongs to the class itself
method cannot return a value
variable is final and cannot change
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you pass command-line arguments to a Java program?
Through a file
Through the main() method's parameters
Through the keyboard
Through the constructor
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about inheritance in Java?
Java supports multiple inheritance through classes
Java supports multiple inheritance using interfaces
A class can inherit from multiple classes
Java does not support inheritance
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not true about the super keyword?
It can be used to access superclass fields
It can be used to call superclass constructors
It can be used to call superclass methods
It can be used to override static methods
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is dynamic method dispatch useful?
For compile-time polymorphism
For achieving run-time polymorphism
For calling private methods
For method overloading
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
P1_APLab2Quiz_B3B4

Quiz
•
University
13 questions
Quiz #2 (Refer to Javatpoint in answering these question)

Quiz
•
University
15 questions
Quiz Pemrograman Berorientasi Obyek

Quiz
•
University
12 questions
javaquizvivek

Quiz
•
University
12 questions
HTML, JAVASCRIPT,XML

Quiz
•
University
10 questions
Apps Script Quiz - Day 1 Lesson

Quiz
•
University
10 questions
Mastering Java OOP Concepts

Quiz
•
University
10 questions
Understanding Inheritance in Java

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University