Check out example codes for "can we overload a static method in java". It will help you in understanding the concepts better.

Code Example 1

package test.main;
 
public class TestOverload {
 
	public static void main(String args[]) {
 
		TestOverload.show();
		TestOverload.show("FrugalisMinds");
	}
 
	public static void show() {
		System.out.println("Show Called ");
	}
 
	public   void show(String name) {
		System.out.println("Overloaded Show Called" + name);
	}
}

Code Example 2

package test.main;
 
public class TestOverload {
 
	public static void main(String args[]) {
 
		TestOverload.show();
		TestOverload.show("FrugalisMinds");
	}
 
	public static void show() {
		System.out.println("Show Called ");
	}
 
	public static void show(String name) {
		System.out.println("Overloaded Show Called" + name);
	}
}

Code Example 3

package test.main;
 
public class TestOverload {
 
	public static void main(String args[]) {
 
		Base obj = new Derived();
          
	       obj.display();  
	       obj.print(); 
	}
 
}
 
class Base {
 
	public static void display() {
		System.out.println("Base Class Display Called");
	}
 
	public void print() {
		System.out.println("Base Class Print Called");
	}
}
 
class Derived extends Base {
 
	public static void display() {
		System.out.println("Derived Class Display Called");
	}
 
	public void print() {
		System.out.println("Derived Class Print Called");
	}
}

Learn ReactJs, React Native from akashmittal.com