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 will you add panel to a frame?

1111


What does the three dot emoji mean?

1124


Which java collection does not allow null?

1155


What is the difference between compile-time polymorphism and runtime polymorphism?

1005


Write an algorithm for quick sort?

1038


What is the difference between keyword and identifier?

1025


What are the types of methodology?

1106


Can we have 2 main methods in java class?

1024


What is the difference between normal report & matrix report?

1110


What is field name?

1018


What is bubble sorting in java?

1050


What is the meaning of nullable?

1015


What is Garbage Collection in Java

1087


What do you understand by soft reference?

1056


What's the difference between int and integer in java?

1169