Answer Posted / raj kumar sav
All of the methods in an interface are implicitly abstract.
Every method declaration in an interface specifies the
formal parameters and return type of the method, but it
does not include an implementation of the method.
All of the variables in an interface are implicitly static
and final.
Interface Modifiers
The keywords public and abstract can appear as modifiers at
the beginning of an interface declaration. In this
situation, these modifiers have the following meanings:
public
If an interface is declared public, it can be referenced by
any class or interface. If the public modifier is not used,
however, the interface can only be referenced by classes
and interfaces in the same package. A single source file,
or compilation unit, can only declare one public class or
interface (see Compilation Units for an exception to this
rule).
abstract
An interface is implicitly abstract; so all of the methods
in an interface are implicitly abstract. Including the
abstract modifier in an interface declaration is permitted,
but it does not change the meaning of the interface
declaration.
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Why java is not 100% object-oriented?
How can we find the actual size of an object on the heap?
What isan abstract class and when do you use it?
What is the independent variable in an experiment?
Difference between this() and super() in java ?
What is null in java?
Why string is a class?
What is polymorphism java example?
Why does java not support pointers?
What are controls and their different types in awt?
What is object in java?
Why runnable interface is used in java?
Explain the significance of class loaders in bootstrap?
What is the ==?
What is treemap in java?