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

How many techniques can be employed to create a string object?

1031


What do you mean by JVM?

1011


Can we access instance variables within static methods ?

1036


Can an object subclass another object?

1022


Write a function to find out longest palindrome in a given string?

1005


What environment variables do I need to set on my machine in order to be able to run java programs?

962


What are the common uses of "this" keyword in java ?

969


Can you use this() and super() both in a constructor?

932


How to use arraylist in java netbeans?

976


What is the difference between yield() and sleep()?

962


Is boolean a data type in java?

903


What is singleton math?

1052


What are the 4 types of characters?

953


How do you pass by reference?

988


Does treeset use compareto?

912