
Java Foundation_9
Authored by Rukumani CT_PG
Computers
Professional Development
Used 1+ 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
_____automatically converts a primitive to the corresponding wrapper classes when needed if the generic type is specified in the declaration.
unboxing
Autoboxing
Boxing
AutoConversion
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The syntax for introducing a generic is to declare a _____parameter in angle brackets
actual
unformal
formal
real
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Method/field in a class (that is not a superclass) in a different package can access ___
If that member is private
If that member has default (package private) access?
If that member is protected?
If that member is public?
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Member in a superclass in a different package can access ___
If that member is private
If that member has default (package private) access?
If that member is protected?
If that member is public?
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
For overriding, the overridden method should follow that:
The access modifier must be the same or more accessible.
The return type must be the same or a more restrictive type, also known as covariant return types.
If any checked exceptions are thrown, only the same exceptions or subclasses of those exceptions are allowed to be thrown.
The methods must not be static.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An abstract class may contain any number of methods including ____
0
1
atleast 1
minimum 2
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
To which lines in the following code could you independently add static and/or final without introducing a compiler error?
1: abstract class Cat {
2: String name = "The Cat";
3: void clean() { }
4: }
5: class Lion extends Cat {
6: void clean() { }
7: }
1 & 5
1 & 3
3
1
2
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
12 questions
Javascript
Quiz
•
Professional Development
10 questions
Intranet
Quiz
•
Professional Development
10 questions
Programming Knowledge Quiz (Medium)
Quiz
•
5th Grade - Professio...
9 questions
Advanced JS II
Quiz
•
Professional Development
13 questions
Repaso
Quiz
•
Professional Development
11 questions
คำถาม Scratch
Quiz
•
Professional Development
10 questions
Python - Introdução
Quiz
•
Professional Development
10 questions
Web Development Workshop
Quiz
•
University - Professi...
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
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...