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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a class declared as private be accessed outside it’s package?

949


Difference between class#getinstance() and new operator ?

1137


What are the special characters?

927


What is return used for in java?

973


What is an anonymous class in java?

1011


why we use merge option in hybernate pls give a ex snippet

1928


What is the difference between normal report & matrix report?

1052


What is exception propagation?

1068


Which number is denoted by leading zero in java?

1192


What is the difference between class & structure?

1120


Is void a data type in java?

921


How can we avoid including a header more than once?

976


Can a static member function access member variable of an object?

956


What are different types of multitasking?

902


What is public static?

976