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
What is unicode in java?
Why is java called the platform independent programming language?
What is finalize()? Is finalize() similar to a destructor?
What is difference between module and function?
What is method in research paper?
Define inheritance?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
What is the use of a copy constructor?
What are facelets templates?
Explain the difference between a Thread and a Process.
Explain about narrowing conversion in java?
What is an object in java?
Can we write a class without main method in java?
What is an class?
What is identifier give example?