Home > Software > Java > Core-Java
Interview Questions   Tutorials   Discussions   Programs   

Core-Java - Can we declare private class in java file?




268
views
asked marvit September 16, 2014 02:47 AM  

Can we declare private class in java file?


           

1 Answers



 
answered By Madhumathi   0  

The top level classes in java , cannot be marked as private . We can have private classes in java file , but they should nested inside another class.

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert