One can call methods using reflection at run time. It is a powerful feature which gives Java a huge edge over other programming languages.

Java Code:
Countries obj = new Countries();
Class c = Class.forName("Countries");
Method method = c.getMethod("methodName");
method.invoke(obj);