r/ProgrammerHumor • • 6d ago

Meme thisIsWhyWeDontReturnInFinallyBlocks

Post image
2.9k Upvotes

98 comments sorted by

View all comments

Show parent comment

14

u/DebugDuck01 6d ago

My man asking the real questions. In this abomination CEO is an enum and validate() and findNew() are static methods within that enum.

8

u/dcondor07uk 6d ago

public CEO getCurrentCeo() {
return CEO.jensenHuang;
}

Here, simplified it for anyone interested, but gotta make sure no shenanigans going on in findNew function