396
submitted 2 years ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 1 points 2 years ago

Fun fact: there's a shorter way to throw a NullPointerException:

throw null;

Because throw throws a NPE if the parameter is null

this post was submitted on 25 Jun 2023
396 points (98.3% liked)

Programmer Humor

36554 readers
647 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS