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

When we give defination of interface method in the class why
method must be public???

Answer Posted / pradeep singh

because class which implements the interfaces if the
access modifiers are protected or private then we can not
override this metods. somethos must be publicand java there
is notmultiple inheritance

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is singleton service?

949


What is final method in java?

1009


How can you traverse a linked list in java?

1116


What is difference between string and new string?

1018


What is Java Shutdown Hook?

1175


What are abstract classes and anonymous classes?

1067


What is array list in java?

1063


What is a function in java?

1006


What are the types of methodology?

1081


Is it possible to write a regular expression to check if string is a number?

1015


Why java is secure? Explain.

1024


What is java dot?

927


What is the difference between pass by reference and pass by pointer?

1076


extending thread class or implementing runnable interface. Which is better? : Java thread

984


What is the importance of main method in Java?

1048