What is the default modifier in Interface?
Answers were Sorted based on User's Feedback
Answer / ravikiran(aptech mumbai)
public+abstract for methods
public+abstract for interface declaration
public+static+final for the interface declaration variable
| Is This Answer Correct ? | 32 Yes | 5 No |
Answer / prashant renge
Public is the default modifier for interface
| Is This Answer Correct ? | 10 Yes | 5 No |
Answer / 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 |
Answer / hemanth
public abstract for methods
public static final for data members
| Is This Answer Correct ? | 0 Yes | 0 No |
Difference between String and String Buffer?
Can we call virtual funciton in a constructor ?
What does void * mean?
What is a class reference?
Mention the default values of all the elements of an array defined as an instance variable.
Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?
What is difference between array and vector?
What are the main uses of this keyword?
Can main() method in java can return any data?
What is string in java with example?
Can we sort list in java?
Tell me the programme for this @ 1 2 @ @ @ 1 2 3 4
5 Answers Accenture, iGate, IntoNET, Value Labs,