Programming  Java  Principles

Answer each question, once completed click submit.

1. In Java Inheritance

all fields of a class are private all fields of a class are protected a new class is derived from an existing class none of these above

Workspace

Discuss

2. Primary purpose of inheritance is

code reuse overloading overriding ignoring irrelevant features from a software

Workspace

Discuss
Ad
Buy Beauty, Health & Personal Care Products | 50% Off or More!!‎‎

399.00    ₹ 179.00
Vast Selection. Best Prices Ever.
Free Delivery Above ₹ 499.

3. Which of the following modifiers can be used to disallow a method from being overridden?

final transient volatile none of these above

Workspace

Discuss

4. In Java programming an object can take many forms. This feature called

Abstraction Polymorphism Encapsulation Inheritance

Workspace

Discuss

5. A method cannot be overridden if it is qualified by which one of the following modifier?

friendly final static none of these above

Workspace

Discuss

6. Multiple inheritance is possible in java by means of

package object interfaces class

Workspace

Discuss

7. Method overloading

is a technique for implementing abstraction is a technique for implementing polymorphism is a technique for implementing encapsulation none of the above

Workspace

Discuss
Ad

TODAY'S LIGHTNING DEALS - GET NOW for 70% OFF or More

Buy Mobile Accessories at Best Price

Global Brands Coverage.100% On-time Shipment Protection.
Most Popular with Good Customer Ratings..! Shop Now!!

8. Which of the following keyword is used to invoke superclass of an overriden method?

native new super static

Workspace

Discuss

9. Which method/methods cannot be overridden?

static final only a. both a and b

Workspace

Discuss

10. Select the correct statement

Method overloading is called compile time polymorphism Method overriding is called runtime polymorphism Only b. is correct Both a. and b. are correct

Workspace

Discuss
Ad

Hair Styling Tools

1 2 3 4 5
6 7 8 9 10