The Java language is an object-oriented programming language, and classes are the basic building blocks of Java programs, and all statements in a Java program appear in a class.
Object-oriented is a way of dealing with problems, in essence, human's daily intuitive thinking. The idea of object-oriented programming consists of two basic concepts: objects and classes.
The so-called "object" is the "thing" in daily life. In other words, an object is something that represents the real world, and an object represents something. The object has two main components, properties, and behaviors. The property of an object is what the object is made of, and the object's behavior is what the object can do.
Class is a template for generating objects that represents a "pattern" or "template" that produces various things in real life.
Java is a compiled and interpreted language, which absorbs the characteristics of both compiled and interpreted languages, and writes Java programs to write classes. Class can have only one public class in a. java file. The file name of the Java file must be the name of the public class declared in the file.
The compiled Java code is called the bytecode. The bytecode appears in the form of a. class file.
The JVM calls the main () method to start executing the Java program. The signature of the main () method is public static void main (string[] args).
Basic Java Concepts