I know that NULL check for every arguments in a public API is good practice in java. But just curious, do we need do such NULL check in the front of all methods. There are definitely values for doing this: catching error earlier and providing better error message. But is it worthy, I mean doing the same NULL check in all methods seems too tedious. If that is needed, why JVM cannot the job by default.
Please share your thoughts.