I have a code that I commnented out as it was no longer needed.
It was some 1000 lines.
So just wanted to know whether keeping that code inside my java file affect the size of the compiled class file?
I saw my class file size but I am not sure whether it was reduced or not.
No, the comments are removed before the class file is created. I don’t know about java but in C language this work is done by the pre processor. The preprocessor is responsible for replacing the macros with their replacement and removing the comments.