Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • You can have public inner classes, what are you trying to say? Commented Nov 10, 2010 at 14:09
  • 7
    He's not referring to inner classes at all, but additional top level classes. Commented Nov 10, 2010 at 14:10
  • "Only one of them can be public" is incorrect. Commented Nov 10, 2010 at 14:27
  • 3
    @Andy: No, "Only one of them can be public" is perfectly correct. Further I can't understand why this was downvoted. Commented Nov 10, 2010 at 14:30
  • 1
    @chicodoro, you may be thinking of the restriction that at most one may be a top-level class. Here's an example of a public class nested in another public class: download.oracle.com/javase/6/docs/api/java/nio/channels/… . Commented Nov 10, 2010 at 14:40