r/ProgrammerHumor • • 2d ago

Meme thisIsWhyWeDontReturnInFinallyBlocks

Post image
2.7k Upvotes

96 comments sorted by

View all comments

9

u/dcondor07uk 2d ago

Where is the findNew function defined?

14

u/DebugDuck01 2d 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 2d ago

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

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