I’m getting this java. lang. NullPointerException when ever I try to call a function from the class array I created.
A arr = new A
//Error occurs when I execute this line below
Can anyone tell me why am I getting this error?
Leave an answer