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 bytecode is called bytecode?
Can we override constructor in java?
What is the Concept of Encapsulation in OOPS
What are the ways to instantiate the class class?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
Does java support Operator Overloading?
What is getclass () getname () in java?
How will you get the platform dependent values like line separator, path separator, etc., ?
Can we split string with in java?
What is a Null object?
Explain some best practices you would apply while using collection in java?
What is a null point?
Explain about collection interface in java?
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
What are the four pillars of java?