use static keyword where u want to call a method directly without using the instance of the class,
the keyword static is used to make fields & methods which belong to the class rather than to its instance
example
class B
{
static void fun()
{
System.out.println("Hello");
}
public static void main(String args [])
{
fun();
}
}
Thanks & Regards
Radix :rose: