Return null without throwing a NullPointerException in getter in Java

后端 未结 0 1043
感情败类
感情败类 2020-12-10 21:49

Is it possible for a getter to return a null without throwing an exception. I don\'t want to use try catch here, so I\'m trying to make this happen. Controller:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题