How static method invoke without mentioning the class name?.ex-below
class Test {
public static void staticMethodOne() {
System.out.println("Static method one");
}
public void instanceMethodOne() {
staticMethodOne();//Call static method without mentioning the class
//name
Test.staticMethodOne();//call from class name
new Test().staticMethodOne();//calling from object ref
}
public static void staticMethodTwo() {
staticMethodOne();
}
}