You are not logged in. Lock_open    

Browse tutorials by Category - Pointers

Null Pointer Exception (Command Line) Time: 4:01 Gb
Average:
  • Currently 3.0/5 Stars from 185 ratings
  •  
  •  
  •  
  •  
  •  
185 ratings
Your Rating:
  • Currently 0.0/5 Stars from 185 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: Array Pointers Runtime Error Command Line
Description: click for more...

Demonstration of a runtime, “Null Pointer exception” ( java.lang.NullPointerException) error and points out how to get the line number from the runtime error. It points out that many null pointer exceptions occur when an object has not been instantiated. This particular example happens in the context of an array where the array itself has been instantiated, but the objects that are elements of the array have not been instantiated.