Java Demo
Java Code
Output
public class error_demo { public static void main(String []args) { Integer Interger_demo = 0; int int_pri = Interger_demo.intValue(); System.out.println("The NullPointerException is fixed and value of variable is: " +int_pri); } }