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 are different type of exceptions in java?

1013


How to change the priority of thread or how to set the priority of thread?

1090


Explain with example the concept of constant variable in java.

1257


What is a generic code?

1127


What is the difference between form & report?

1084


Is heap stored in ram?

1014


When is the garbage collection used in Java?

1259


Can we compare two strings in java?

1073


What does indexof return in java?

1045


What is exception handling in java?

1079


Is minecraft java edition free?

1166


What is the relationship difference the canvas class and the graphics class?

1110


What is hashset in java?

1191


How do you escape sequences in java?

1110


Can a serialized object be transferred via network?

1021