Interview Questions on C C++

Home  |  About Us  |  Contact
View Questions Contribute Training Misc..

You are here : Home » Java » Java Interview Questions on Inheritance

Java Interview Questions on Inheritance - 5 Questions


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

[Posted by: Admin | Location: Chicago, USA]



Question: 2

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

[Posted by: Admin | Location: Chicago, USA]



Question: 3

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

[Posted by: Admin | Location: Chicago, USA]



Question: 4

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

[Posted by: Admin | Location: Chicago, USA]



Question: 5

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

[Posted by: Admin | Location: Chicago, USA]


[Contribute to this Website]


Java Objective Questions By Different 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 | Serialization | Multithreading | Networking | Sending Email | Applet Basics | Other