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...


why do we use interface in java?

Answers were Sorted based on User's Feedback



why do we use interface in java?..

Answer / ki2

Hi, Here the Question is why do we use interface in java but
all people trying to say wat is an interface....


in software development ,We restrict the programmer to use
only those action wat we declare and these method
declarations are given to some third party vendors so they
can implemented their implementations.

Is This Answer Correct ?    11 Yes 1 No

why do we use interface in java?..

Answer / manasa

By default interface methods are abstract and public not
static methods

Is This Answer Correct ?    10 Yes 6 No

why do we use interface in java?..

Answer / guest

Interface is a collection of abstract classes n
methods.Interface is mainly used for restricting the users
to make use of the specified methods only.

Is This Answer Correct ?    5 Yes 1 No

why do we use interface in java?..

Answer / navinice

We use Interfaces in java because JAVA Doesn't support
multiple inheritance. Thats why no any class can extend more
than one class in JAVA.. But through Interfaces we can
implement more than one interfaces and use there methods in
base class.

Is This Answer Correct ?    6 Yes 3 No

why do we use interface in java?..

Answer / sandeep sagala

Interface is used to get an 100% abstract class. By using
this class we cant create an object for this class. In this
there will be all the unimplemented methods only. No method
is implemented in this type of classes. The methods present
inside this interfaces are all static and public by default.
The attributes present inside this interfaces are public,
final and static by default.

Is This Answer Correct ?    4 Yes 11 No

Post New Answer

More Core Java Interview Questions

How can you sort dates?

2 Answers   TCS,


v-model life cycle

0 Answers   Virtusa,


what is difference between validation.xml & validation rules.xml?

8 Answers   BirlaSoft,


Explain exception chaining in java?

0 Answers   Cyient,


Explain the scope or life time of class variables or static variables?

0 Answers  


If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?

0 Answers  


what is jdk1.5 features?

6 Answers   AMS, Virtusa,


How to validate the request (Eg:user name and password) in session(http session)? not in LDAP server ?

1 Answers   Saksoft,


What is JDK? Mention the variants of JDK?

1 Answers  


What is an infinite loop? How infinite loop is declared?

0 Answers  


What do you understand by garbage collection in Java? Can it be forced to run?

0 Answers   TCS,


What will happens if you opened Internet Explorer 4 times?

2 Answers  


Categories