-4
class  
{
    public static void main(String[] args) 
    {
        System.out.println("Hello World!");
    }
}

while compiling it was showing error

---------- Compile ----------
Untitled1.java:1: error: <identifier> expected
public class  
            ^
1 error

Output completed (0 sec consumed) - Normal Termination
4

1 に答える 1