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...

can we declare private class in java file?

Answer Posted / aditya kumar

yes,from Java8 we can also declare private and protected Top level classes.....but i am not getting the reason behind this why oracle did it.So if any one has it's explanation plz tell me....

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a Transient Object?

1020


Explain the use of javap tool.

1094


What are the disadvantages of using inner classes?

1059


What does  mean in regex?

987


What are the pillars of java?

865


What is parameters example?

967


What is treeset in java?

941


What is the significance of java packages?

1065


What is thread life cycle in java?

1006


Why enumeration is faster than iterator?

891


Given a singly linked list, determine whether it contains a loop or not without using temporary space?

932


What is the difference between assignment and initialization?

995


How do you identify if jvm is 32-bit or 64-bit from java program?

910


What do you understand by private, protected and public?

996


What is bigger kb or mb?

978