With Optional , the .of() method notices the null value and throws the NullPointerException immediately - potentially also crashing the program.
確定! 回上一頁