📜 ⬆️ ⬇️

Java Core Task

In continuation to the good task, published not so long ago on Habré, I would like to propose another task.
The meaning, of course, is precisely in solving the problem in the head, without using specials. editors and compiler.

Given Java code:
 public class HelloWorld {
   public static void main (String ... args) {
     http://habrahabr.ru;
     System.out.println ("Hello World!");
   }
 }


Question: will it be compiled or not?

Answer (highlighted in white): Compiled. "Http:" - label, "//habrahabr.ru;" - comment

')

Source: https://habr.com/ru/post/108236/


All Articles