According to the text book, NPE will be thrown or specified assertion
error occur due to inconsisten view of object reference or object state.

But failed to verify it using these program.