aspose file tools*
The moose likes Beginning Java and the fly likes public declaration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "public declaration" Watch "public declaration" New topic
Author

public declaration

sai donthneni
Ranch Hand

Joined: Mar 26, 2006
Posts: 50
I have a question. Sometimes compilation error occurs which says that certain class has to be declared public. why is it so?
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Can you give a specific exmaple where you have seen this compiler error? Also, please provide the exact error message (i.e. copy and paste it here). This information will help us to answer your question.

Layne


Java API Documentation
The Java Tutorial
sai donthneni
Ranch Hand

Joined: Mar 26, 2006
Posts: 50
sorry I have mistaken, it happens with applet classes which when not declared public gives a run time error. The reason?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: public declaration
 
Similar Threads
JSP Element mixture
No ClassDefFoundError
WA #1.....word association
Excluding methods from a test case
simple doubts, please explain.