Java doesn't have pointers, but it does have reference to objects, which have memory allocated to them in heap.
A reference type has default value of null whenever a method is invoked as that returns NullPointerException is thrown as a results.
Post a Comment
No comments:
Post a Comment