DEV Community

LAKSHMI G
LAKSHMI G

Posted on

Java Syntax Rules

  1. - File name should be class name.
  2. - Case sensitive.
  3. - Semi-colon is most compulsory.
  4. - Main function is compulsory.
  5. - Class is compulsory.
  6. - Curly braces is most important start and {}.
  7. - Main function should is proper case.
  8. - Extension most be in lowercase.
  9. - String most be in "" double quotation
  10. - Without Public main function not run.(show of run time error)

Top comments (0)