You need to sign in to do that
Don't have an account?
Navneeth Raj
System.NullPointerException: Attempt to de-reference a null object. How the problem rised & how to overcome it
System.NullPointerException: Attempt to de-reference a null object
Remove the line no 11 i.e: return add();
This will make a recursive call error. So remove that line and return either a or b variable.