How many classes can we have in one package?

Asked

Viewed 178 times

-3

Treeview com as classes do pacote no Eclipe

How many classes can we have in a single package?

  • 3

    As far as I know there is no limit, not one that is imposed by language/IDE

  • Did the answer solve your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful for you. You can also vote on any question or answer you find useful on the entire site (when you have 15 points).

1 answer

2

As many as you want. Even if it has a theoretical limit it is much larger than the practical.

What exists is only a recommendation for one class per source file.

And this has nothing to do with Eclipse, no matter if you are using this IDE or not. It is a matter of the Java implementation you are using. See What is a programming language, IDE and compiler?.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.