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 asub class inherits a super class and overrides a
public method of super class in sub class(public method in
super class).
why these methods needs to be public in sub class.
(otherwise compile time error).

Answer Posted / ravikiran

the access specifies sould not me more restrictive in a
subclass.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by distributed application? Why are we using that in our application?

938


Tell me the latest versions in java related areas?

1081


How can you handle java exceptions?

1006


How do you decide when to use arraylist and linkedlist?

979


What is dynamic binding(late binding)?

1022


What is difference between public static and void?

991


Can I import same package/class twice?

944


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

991


What is meant by bytecode?

1011


Define array. Tell me about 2-D array.

1034


Can constructor be protected in java?

953


Can you explain the usages of class.forname()?

1055


What is extension method in java?

1025


Which collections are thread safe in java?

918


When should the method invokelater() be used?

1007