Search code examples
javacommentsdecompiling

Can Java comments be seen by decompiling?


I was wondering if I put comments in my code and when someone tried to decompile it, if they could read the comments that I put?


Solution

  • No, comments are never included as part of the compilation process. They are typically removed in some sort of pre-processing, or first-pass stage.