statickeyword is a modifier used to specify that a member belongs to the class rather than to a specific object instance.Memory for static members is allocated only once when the class is loaded, and you can access them directly using the class name without creating an instance.
Where
staticCan Be UsedStatic Variables (Class Variables)
Static Methods.
Static Blocks.
class Student {
static String college = "KIET";
}