What happens to comments after the java files are compiled in Android?
问题 How does the Android compiler work? Does it remove the comments in Java code and Android XML files on compilation? 回答1: Comments in Java files are removed, or ignored, when they are compiled into class files. Class files are not for human-reading - they are optimized to run efficiently on a virtual machine. If the comments were to remain, they would just cause the class files to be larger than required, and for no additional benefit (ie, the compiler and virtual machines don't understand