Java, Software development

How to execute Java code within Java comments

We all know Java comments are not visible to compiler and are not executable. But here we will see how a comment can be executed. To execute any comment we need to append a unicode as prefix to that comment and thats it. Now when you will run the code then this comment line will be executed. [java] public class CommentTest { public...

by Sandeep Gupta
Tag: Java Comments
31-May-2016