By using the static method there is no need creating an object of that class to use that method. We can directly call that method on that class. For example, say class A has static function f(), then we can call f() function as A.f(). There is no need of creating an object of class A.
Static method is act as something like global method thogh it is class member method since it defines during preprocessing. So, static methods can be called without creating objects.(object.static method is not requred) class::static method can be used to call static methods
The purpose of using static member is to create a copy of the method or a variable per class. not an every object for that class. So static means A copy per Class.
static methods are those which exist at compile time.Means the binding of code takes place at compile time so when we have to call this methods there is no need of object as instance method do.. thus static method can be called through class name only.. B.f();
Given two tables Student(SID, Name, Course) and Level(SID, level) write the SQL statement to get the name and SID of the student who are taking course = 3 and at freshman level.