标签:数据 建议 java 规范 基本 需求 str otn ring
1.方法返回类型用int还是Integer
看需求,int是数据类型,不能包含null等。
Integer是类,其中包含该类中属性和方法,包含null。
所以建议使用Integer,方便以后拓展。
2.判空时,该用什么什么注解?
标签:数据 建议 java 规范 基本 需求 str otn ring
原文地址:https://www.cnblogs.com/luoliuniankk/p/9982276.html