Exception Catch Block not catching the NullPointerException in Java

前端 未结 0 655
-上瘾入骨i
-上瘾入骨i 2020-12-17 15:48

My code is getting NullPointerException and this piece of code is in try..catch..block.

Code is shown as below:

    try {

        User user = null;
           


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