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

Subscribe via Email

Followers


Popular Posts

About Me

My photo

I am a student of BTech Computer Science Engineering from RCCIIT,Kolkata. I am a crazy lover of Java and wants to settle as a Java developer. I have a seven years Java experience with an application developer experience for 2 years. Recently from March 2012 I am a registered S40 app developer for Nokia and has corrected an app of them. I am currently writing blogs to encourage and grow interest in all those who don't know or learning Java.