Saturday, August 4, 2012
It is not possible to declare a class private in Java. For example you cannot write a class as shown below
private class Demo{}
If you write this you will get a compile error as shown below
This is because it is not available to java compiler and hence a compile time error occurs, But inner classes can be declared as private.

1 comment:

  1. awesome post !!! looking forward to ur next posts !!! keep up the good work :D

    ReplyDelete

Total Pageviews

Followers


Labels

Popular Posts

free counters