public class Catch2{ public static void a(){ throw new RuntimeException("Feed Me!"); } public static void b(){ try { a(); } catch (EmptyStackException e){ System.out.println(e.getMessage()); } } public static void main(String[] args){ try{ b(); } catch (RuntimeException e){ System.out.println("Caught"); } } }