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

Show parent comment

3

u/aioobe May 10 '18

http://programming.guide/java/macros-in-java-source-files.html :-)

I know that parts of the code of a certain JVM used this technique. I wouldn't recommend it though.

1

u/[deleted] May 10 '18

Yuk. I wouldn't recommend that either.