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 happens when a thread cannot acquire a lock on an object in java programming?

966


When is an object subject to garbage collection?

1005


What is reflexive association?

1718


What is an exception in java?

1080


What is java argument list?

891


Can an interface be final?

983


Why inputstreamreader is used in java?

965


What does the three dot emoji mean?

1063


What is difference between path and classpath variables?

1049


How many wrapper classes are there in java?

978


Explain the usage of this with constructors?

987


Differentiate between stringbuffer and string?

995


What is locale in java?

982


write a program that list all permutations of ABCDEF in which A appears before B?

2444


When do we use synchronized methods in java?

998