DEV Community

Cover image for Java Syntax and Common Types of Errors?
Arul .A
Arul .A

Posted on

Java Syntax and Common Types of Errors?

Syntax:

Public class Home
{
  public static void main(String[] args)
 {
   System.out.println("hello world");
 }
}
Enter fullscreen mode Exit fullscreen mode

1.public in Caps (Public)


2.class starts with caps(Class)


3.file name starts with small letters (home)


4.Public in caps(Public)


5.static in caps(Static)


6.void in Caps (Void)


7.main in caps (Main)


8.string in small(string)


9.[] alternate ()


10.system.out in small(system)


11.ln to In


12.The print statement not in strings

Top comments (0)