In Java, which of the following is inherited by a subinterface from its superinterface?
1. Abstract methods
2. Default methods
3. Constant fields
4. Static methods
1.2 and 3
1.2, and 4
13, and 4
All of these
Answers
Answered by
0
Answer:
constant variable
Explanation:
hope so correct
Answered by
0
Abstract methods, Default methods, and Constant fields, Static methods are inherited by a subinterface from its super interface.
A subinterface from its superinterface :
- A subinterface inherits all of the super interface's constant variables. If a subinterface declares a constant variable with the same name as the inherited constants, the new constant variable, regardless of type, conceals the inherited one.
- In addition, just as classes may inherit from other classes, a Java interface can inherit from another java interface.
- It is possible to assign a subinterface type reference variable to a super interface type reference variable.
Similar questions