1542.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
1543.Primary purpose of inheritance is
code reuse
overloading
overriding
ignoring irrelevant features from a software
1544.Which of the following modifiers can be used to disallow a method from being overridden?
final
transient
volatile
none of these above
1545.In Java programming an object can take many forms. This feature called
Abstraction
Polymorphism
Encapsulation
Inheritance
1546.A method cannot be overridden if it is qualified by which one of the following modifier?
friendly
final
static
none of these above
1548.Method overloading
is a technique for implementing abstraction
is a technique for implementing polymorphism
is a technique for implementing encapsulation
none of the above
1549.Which of the following keyword is used to invoke superclass of an overriden method?
native
new
super
static
1551.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
- Collection
- ArrayList
- LinkedList
- Vector
- HashSet
- Conditional Statements
- Classes and Objects
- Inheritance
- Packages
- Exception Handling
- Threads
- TreeSet
- LinkedHashSet
- HashMap
- TreeMap
- LinkedHashMap
- HashTable
- Iterator and ListIterator
- String
- Scanner
- Array Small Programs
- Introduction
- Variables
- DataTypes
- Operators
- Conditional Statements
- Loop
- Arrays
- Object Oriented Programming
- Classes and Objects
- Access Modifiers
- Methods
- Abstraction
- Constructor
- Packages
- StringBuffer
- Inheritance
- StringBuilder
- Encapsulation
- Java IO
- Polymorphism
- Interface
- Types Of Variables
- Static Keyword
- Final Keyword
- Super Keyword
- This Keyword
- Exception Handling