Syntax in Java.

Java Syntax is a collection of objects, and these objects and methods are use to write programs that the compiler and computer understands.

Code :