can integer be null (第 9 页)

纯净搜索 为您找到 本页 4 条,用时 5.65 秒(数据源:360)

Java: Is it ok to set Integer = null? - Stack Overflow

最佳答案提问时间:2010年1月24日 - 14个回答This is perfectly legal. If you want to avoid a NPE, throw a custom exception. But don't return a negative number. If the caller doesn't che...stackoverflow.com反馈 常搜推荐
stackoverflow.com