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 non nested classes in java are not having marked as
protected access specifier

Answer Posted / yayati pavan

When the non nested class declared as public or
default(public) the jvm can access the class and execute.
So non nested class must always public. other wise jvm can't
access the class.

Is This Answer Correct ?    7 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is methodological framework?

972


What are dot operator queries?

1055


What is a char in java?

976


Can we inherit a class with private constructor?

1058


Can an object subclass another object?

1018


Explain about exception propagation?

973


Why stringbuilder is not thread safe in java?

967


When is finally block not called?

1016


Can a class be private or protected in java?

999


What is a dot notation?

957


What is the benefit of using enum to declare a constant?

1038


What is multi-catch block in java?

1018


What is runtime locatable code?

1362


What does three dots mean in java?

1058


How use .contains in java?

1122