Question: are comments compiled into bytecode?
Answer: Because XML files could have a wide range of uses, the comments aren't removed from XML files in case they are required for some other purpose. Comments are not present in the byte code/. class version of the file..comments are ignored by the compiler at the time of compilation.. ... java source files into its bytecode/.