Can Java comments be seen by decompiling?

前端 未结 4 1966
再見小時候
再見小時候 2021-01-19 07:33

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?

4条回答
  •  礼貌的吻别
    2021-01-19 08:11

    No. And you can verify this by using DJ Java Decompiler, for example. If you also refer to the Java Class File Format, you'll see there's no construct for storing comments.

提交回复
热议问题