Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the default modifier in Interface?

Answers were Sorted based on User's Feedback



What is the default modifier in Interface?..

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

What is the default modifier in Interface?..

Answer / guest

Default modifier in Interface is public.

Is This Answer Correct ?    33 Yes 10 No

What is the default modifier in Interface?..

Answer / prashant renge

Public is the default modifier for interface

Is This Answer Correct ?    10 Yes 5 No

What is the default modifier in Interface?..

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

What is the default modifier in Interface?..

Answer / hemanth

public abstract for methods
public static final for data members

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is return keyword in java?

0 Answers  


How is Garbage collection done in Java?

3 Answers   T3 Softwares,


Is 0 a real number?

0 Answers  


What is the meaning of immutable regarding string?

0 Answers  


what is difference between Action messages and Action errors?

3 Answers   Bio Imagene, TCS,


Differentiate jar and war files?

0 Answers  


Explain what pure virtual function is?

0 Answers   Aricent,


how to crate clint-server socket?

1 Answers   Accenture, Infosys, Infotech, TCS,


What is the effect of keeping a constructor private?

0 Answers  


write a progam hashmap & hashtable?

2 Answers   IBM,


What is methods and methodology?

0 Answers  


What is arraylist class in java?

0 Answers  


Categories