Browse tutorials by Category - Pointers
Null Pointer Exception (Command Line)
Time: 4:01
|
|
| Average: 185 ratings | Your Rating: |
| 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. |
|