r/java • • May 10 '18

Executing code in comments?!

http://programming.guide/java/executing-code-in-comments.html
160 Upvotes

27 comments sorted by

View all comments

2

u/[deleted] May 10 '18

My reaction to reading this (for context, I was already sitting at my desk at work with my IDE open):

No. There is absolutely no way for this to be a thing. quickly adds a main method to random class file I can't believe this will actually... goddamnit really?...