1

I experienced a scenario where I find null pointer exception every time, I printed all the arguments when I'm passing them to that particular function and it is printing on console. While debugging I found a value for each variable but I found a column called "hash" which is '0'. Could anyone explain what is that? Does it relate to the exception(Null pointer) which I'm experiencing now? You can see column 'sValue' which is shown in the picture is the point where I'm getting an exception. enter image description here

Krishna Barri
  • 1,071
  • 7
  • 22

1 Answers1

1

Every object in JAVA has hash code associated to it generated by hashCode()(public int hashCode()). This hash is representing that value.