Java is a widely-used programming language that is known for its versatility and ease of use. Whether you are a noob or pro understanding the basic standards, operators, classes, and objects in Java is essential.
Java Standards:
One of the most important aspects of the Java language specification is the syntax of the language itself. This includes the way that keywords are used, how variables are declared and used, and the rules for creating classes and methods. Also we can understand a syntax by just looking it's self.
Have a Look
Java print statement:
The Java print statement is a way to display information to the console during runtime. It can output values of variables, error messages, and program results.
Java print statement syntax:
Class and Objects:
In Java, a class is like a blueprint that defines how objects of that type should be created and behave. It is a template that describes the properties and behaviors of a group of objects.
A method is a set of instructions that are grouped together to perform a specific task. Think of it like a recipe that tells the computer what to do. A method is defined inside a class and can be called from other parts of the program.
In above image Car is the class and Red Car, Ford Car, Toyota Car, Golf Car, Green Car are the objects of the Car.
Good Luck!
0 Comments