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?

Answers were Sorted based on User's Feedback



can we declare private class in java file?..

Answer / 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

can we declare private class in java file?..

Answer / hanumanth

Can any one give example?

Is This Answer Correct ?    10 Yes 11 No

can we declare private class in java file?..

Answer / varsha vilas kalebag

yes we can declare private class in java file

Is This Answer Correct ?    46 Yes 131 No

Post New Answer

More Core Java Interview Questions

What will happen to the exception object after exception handling?

0 Answers  


What are different access specifiers in java?

0 Answers  


using equals method overriding which objects are compared?i.e same class objects or other class objects?Explain me.

4 Answers  


what is class.forname() and how it will be useful ?

3 Answers  


Can we have multiple classes in single file ?

0 Answers  


What are java packages? What is the significance of packages?

0 Answers  


How many threads can java run?

0 Answers  


Explain tree set and its features?

0 Answers  


What is a parent class in java?

0 Answers  


What is the unit of plancks constant?

0 Answers  


Explain java coding standards for methods?

0 Answers  


can I implement my own start() method? : Java thread

0 Answers  


Categories