Static function are usefull when the function is called only once or we donâ€™t need multiple copies of that function.
A static method can access only static members. A non-static method can access both static and non-static members.
Static function can be called either by class name or object .A non static function can be called only by object.
static void func1()
public static void main(String args)
example obj=new example();