My java code has an obvious error. Why does it compile and run? June 14, 2023 by Tarik The http: is a Label Statement. See here also. The //www.google.com portion is then interpreted as a // comment.