public class Test
public void method1(Object o)
public void method1(String s)
public static void main(String args)
Test t = new Test();
When running the program, the output would be
It is the hierarchy of objects being searched for a match, which is quite similar to the exception objects of catch blocks. The search process is done in the bottom-up manner wherein the object of class of least node is searched first and its continued upwards to the super/parent classes till the end is reached.