This article is all about Java Program CheatSheet. We have covered all Java Topics in Short so that you can revise complete java quickly for your interview preparation. What is Java?Java is a programming language that is used to develop web applications, web servers, mobile apps, embedded systems applications, etc. It was first released in 1995 and was created by James Gosling. The main aim to develop this language was to provide a platform-independent language for building software applications. Later in 2010, it was acquired by Oracle Corporation.Basic Java Programimport java.time.LocalDate;public class Main { public static void main(String args) { System.out.println("Hello World"); System.out.println("Today date: " + LocalDate.now()); }}Above Syntax Explanations- import - used to import java libraries- class keyword - to declare a class in java.- public keyword - access modifier represents visibility. Public is visible to all.- static keyword - no need to create an object to invoke the static method. There is no need to create an object to invoke the main method and it's invoked by JVM and saves memory.- void - return type of the method. it doesn't return any value.- main - starting point of the program.- String args - for command line arguments.- System.out.println() - used to print statement.Steps to compile and run java programGo to Command prompt and navigate to the folder where java files are storedTo Compilejavac Main.javaTo Run Java programjava MainData Type In Java1). Primitive Data TypePrimitive data types are the basic data types in the Java language. They are used to store simple values.In Java, there are eight primitive data types- byte: Represents a signed 8-bit integer.byte a = 99;- short: Represents a signed 16-bit integer.short b = 999;- int: Represents a signed 32-bit integer.int c = 99;- long: Represents a signed 64-bit integer.long d = 99999999999L;- float: Represents a 32-bit floating-point number.float e = 99.99f;- double: Represents a 64-bit floating-point number.double e = 99.99d;- char: Represents a single 16-bit Unicode character.char g = 'A';- boolean: Represents either true or false.boolean f = true;