394
you are viewing a single comment's thread
view the rest of the comments
[-] silenium_dev@etaorion.org 1 points 1 year 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
394 points (98.0% liked)

Programmer Humor

32562 readers
431 users here now

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

Rules:

founded 5 years ago
MODERATORS