Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » Java » Java Interview Questions on Inheritance

Java Interview Questions on Inheritance - 9


Question: 1

(A) Inheritance increases execution of program
(B) Inheritance is useful in code re-usability
(C) Inheritance minimizes programming loop holes
(D) None of the above

Level: Beginner Category of MCQ: inheritance



Question: 2

(A) extends is a datatype
(B) extends is a keyword
(C) extends is a class
(D) extend is a package

Level: Beginner Category of MCQ: inheritance



Question: 3

(A) 0
(B) 10
(C) Compilation Error
(D) Exception

Level: Beginner Category of MCQ: inheritance



Question: 4

(A) 0
(B) 10
(C) Compilation Error
(D) Exception

Level: Practitioner Category of MCQ: inheritance



Question: 5

(A) 1
(B) 2
(C) 3
(D) 4

Level: Beginner Category of MCQ: inheritance



Question: 6

(A) Reading...
(B) Reading Book
(C) Reading Code
(D) Compilation Error

Level: Practitioner Category of MCQ: inheritance



Question: 7

(A) Private
(B) Protected
(C) Public
(D) Package-Private

Level: Practitioner Category of MCQ: inheritance



Question: 8

(A) cougar c f
(B) feline cougar c c
(C) feline cougar c f
(D) Compilation fails

Level: Practitioner Category of MCQ: inheritance



Question: 9

(A) alpha beta
(B) beta beta
(C) gamma gamma
(D) Compilation fails

Level: Practitioner Category of MCQ: inheritance



Browse Java Categories

Datatype Variables Operators Decision Making Loops Methods Reference Variables Arrays Classes and Objects Abstract Class Singleton Class Modifiers Inheritance Overriding Polymorphism Abstraction Encapsulation Files and I/O TypeCasting Packages Exceptions Collections Framework Numbers Class Date & Time Regular Expressions Data Structures Interfaces Multithreading Other