Maximum lines of code permitted in a Java class?

后端 未结 5 1476
滥情空心
滥情空心 2020-12-05 10:46

How many lines of code can a .java file contain? Does it depend on the JVM being used?

5条回答
  •  甜味超标
    2020-12-05 10:57

    As mentioned the above, there is no limit on "lines of code” per class in java, we can probably use 200 lines as a good guideline and not exceed 500 lines per class.

提交回复
热议问题