Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Select the best word or phrase that completes each of the following. (JAVA) Ever

ID: 3905892 • Letter: S

Question

Select the best word or phrase that completes each of the following. (JAVA)

Every class is a [1] of the class [2]

A or an [3][4] cannot be instantiated

A class that is prefaced with the keyword [5] cannot be inherited; and a class prefaced with the keyword [6] cannot be accessed by any class other than itself.

A or an [7][8] can be instantiated

(for each blank answer, please write the number of the blank followed by a dash, and the word that fills in the blank, followed by a comma and then the next answer.)

(Example. 1-dog, 2-cat, 3-horse…)

Explanation / Answer

1 - subclass, 2 - Object, 3 - Abstract, 4 - class, 5 - final, 6 - private, 7 - concrete, 8 - class

Explanation

1,2 -> The topmost class from which all classes derives is the Object class in the java.lang package.

3,4 -> Abstract classes cannot be instantiated, means we can't create an object to Abstract class.

5 -> Final classes cannot be instantiated in java.

6 -> A class declared with the keyword private cannot be accessed by any other class.

Please note that only the inner classes are generally declared as private. Declaring an outer class as private would be completely useless because no other class can access it.

7,8 -> A concrete class is the one using which you can create an object.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote