POJO stands for “Plain Old Java Object”. A class which contains only private variables and setter and getter methods to use those variables is called POJO class
In Java, static is a keyword used to describe how objects are managed within the memory. A static object belongs specifically to the class, instead of instances of that class. The sole purpose of the class is to provide blueprints of its inherited classes. A static class can contain static members only. You cannot create an object for a static class.
Inner classInner class means the class which is a member of another class. There are four types of inner classes in java.1) Nested Inner class2) Method Local inner classes3) Anonymous inner classes4) Static nested classes
Any normal class which does not have any abstract method or a class having an implementation for all of its methods is basically a concrete class. They cannot have any unimplemented methods. A concrete class can extend its parent class, an abstract class or implement an interface if it implements all their methods. It is a complete class that can be instantiated.
An abstract class is declared with an abstract keyword and have zero or more abstract methods. These classes are incomplete classes, therefore, to use an abstract class we strictly need to extend the abstract classes to a concrete class. It can have constructors and static methods as well. It can have final methods which will force the subclass to keep the body of the method unhung.
Once a variable, method or a class is declared as final, it’s value remains the same throughout. The final keyword in a method declaration indicates that the method cannot be overridden by any subclasses i.e., a class that has been declared final cannot be subclassed. This helps a lot while creating an immutable class like the String class. A class cannot make a class immutable without making it final
In Java, There are 4 major types of classes.
Abstract Java ClassesAbstract Java class can have abstract methods and non-abstract methods.If a class have an abstract method, this class must be abstract Java class.If we want to use an abstract class, it needs to be extended and its methods implemented.
Nested Java ClassesJava programming language allows you to define a class within another class. We use the nested class to logically group of the class and interface in one place It can be more readable maintainable and can access all the members of the outer class(public, private, protected).
Final Java ClassesWhen we use the final with any class, it is called a final Java class. A final class can’t be inherited. If any class is declared final then all its methods implicitly get declared as final.
Singletan Java class
In object-oriented programming, a singleton class is a class that can have only one object at a time. Singletons often control access to resources, such as database connections or sockets. The intention is to create a single instance of an object of classes which are expensive to create during runtime and try to reuse the same object.
For a Detailed tutorial on Java Classes, visithttps://www.c-sharpcorner.com/article/a-complete-java-classes-tutorial/