How should I structure a Java application, where do I put my classes?

后端 未结 10 1485
轻奢々
轻奢々 2020-12-24 05:17

First of all, I know how to build a Java application. But I have always been puzzled about where to put my classes. There are proponents for organizing the packages in a str

10条回答
  •  太阳男子
    2020-12-24 06:11

    I like break my classes down into packages that are related to each other.

    For example: Model For database related calls

    View Classes that deal with what you see

    Control Core functionality classes

    Util Any misc. classes that are used (typically static functions)

    etc.

提交回复
热议问题