
Java Foundation_9

Quiz
•
Computers
•
Professional Development
•
Hard
Rukumani CT_PG
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Quiz Java cz1

Quiz
•
Professional Development
11 questions
Angular quizz

Quiz
•
Professional Development
15 questions
Big Data Analytics Quiz based on Unit 1 and 2

Quiz
•
Professional Development
12 questions
Dynamic Memory Allocation

Quiz
•
Professional Development
10 questions
A+ Review Quiz

Quiz
•
Professional Development
12 questions
IO STREAMS -1

Quiz
•
Professional Development
8 questions
Advanced CyberCamp Progress Check Kahoot

Quiz
•
KG - Professional Dev...
10 questions
PBO

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade