I wanted to know how a static method is called in another class.
Assume I have a class as following,
class classA
{
public static void method1(String a)
{
}
}
In another class the method method1 is called as following,
class classB
{
public static void main(String[] args)
{
method1("Alpha");
}
}
Please note that the ClassB is not extending the ClassA, I am confused.