📄️ Java Basic Data Types
Java has two types of data types: primitive and non-primitive.
📄️ Java Operators
Java has a variety of operators that can be used to perform operations on variables and values. These operators can be grouped into three main categories:
📄️ Arrays in Java
An array is a data structure that holds a fixed number of values of the same type. These values can be accessed by their index, which is an integer value that ranges from 0 to the size of the array minus 1. In Java, arrays are objects and are created with the new keyword.
📄️ Classes
A class in Java is a blueprint for creating objects, which are instances of the class. A class defines the properties and methods that an object of that class will have. In other words, a class is a template for creating objects, and an object is an instance of a class.
📄️ The static Keyword
The static keyword in Java is used to indicate that a member (field or method) of a class belongs to the class itself, rather than to any instance of the class. In other words, it is a class level rather than an object level property.
📄️ Inheritance
Inheritance is one of the key concepts in object-oriented programming. Inheritance allows a class to inherit properties and methods from another class, which helps to reduce code duplication and improves code reusability.
📄️ Nested and Inner Classes in Java
In Java, a class can be defined inside another class, which is known as a nested class. There are two types of nested classes in Java: static nested classes and inner classes.
📄️ Records
Records are a compact and easy-to-use way to create simple data classes that have only private fields and a public constructor, and no methods.