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

explain different ways of using thread? : Java thread

1057


How to check if a list is sorted in java?

1085


Can we inherit inner class?

1072


Can we declare an interface as final?

1110


Why do we use regex?

1075


Why does it take so much time to access an applet having swing components the first time?

1983


What is a JAR file?

1101


What is the difference between sleep and wait in java?

1010


what is the difference between yielding and sleeping? : Java thread

1006


What is a marker interface?

1221


which pattern is default in scanner package?

2266


How do you square a number in java?

1102


What steps are taken when the OS shifts from one-thread execution to another?

1410


What are sets in java?

998


What are 5 boolean operators?

1248