A class inside another class is called a Nested Class. In other words, as a class has member variables and member methods it can also have member classes.
Static is one of the non-access modifier which has a huge role in Java. It can be usedwith both variables and methods. It is used when we want some variable or method not to be a part of any specific objectof a class rather common for all objects of the class.