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

How many ways can we create the string object?

1014


What are the restrictions imposed by a Security Manager on Applets?.

2610


Is there any difference between synchronized methods and synchronized statements?

1091


What is a locale?

1141


What exactly is methodology?

916


What do you understand by synchronization?

1044


Is empty in java?

1048


When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?

1027


How do you create a method in java?

992


What does the three dot emoji mean?

1116


What is an off by one error in java?

947


How do you sort arraylist in descending order?

1014


What are void pointers?

1293


what is the purpose of using rmisecuritymanager in rmi?

961


Is set ordered?

972