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

Is overriding possible in java?

964


What is string value?

1171


Explain an algorithm to find depth of a binary tree.

1044


What data type is a string?

1015


How many types of the indexof method are there for strings?

971


In a class implementing an interface, can we change the value of any variable defined in the interface?

1093


What is the difference between yielding and sleeping in java programming?

1162


Realized?

2192


Why string is immutable or final in java

1093


How will you calculate the depth of a binary tree if the tree contains 15 nodes?

1084


What is a stringbuilder?

920


How do you sort arraylist in descending order?

1022


What is final keyword?

1163


What is the use of static class?

1193


What does g mean in regex?

991