how many public classes in a .java file allowed?
Forum » SCJP2 Discussion / classes, access modifiers » how many public classes in a .java file allowed?
Started by: itsraghzitsraghz
On: 1185465495|%e %b %Y, %H:%M %Z|agohover
Number of posts: 1
rss icon RSS: New posts
how many public classes in a .java file allowed?
itsraghzitsraghz 1185465495|%e %b %Y, %H:%M %Z|agohover

In a java file how many public classes can be present?

The answer is ONLY ONE. But most refined answer is Only one Public Class, since there may be public nested class inside the same .java file which is legally allowed.

source : A Javaranch thread -> http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=33&t=023337

unfold how many public classes in a .java file allowed? by itsraghzitsraghz, 1185465495|%e %b %Y, %H:%M %Z|agohover
New post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.