title: Java : Unknown error in exception handling
body: <p>i have a weird question. i had a quiz in my class today. One portion of the quiz was to find and correct errors in a short piece of code. one of the questions was like this</p>
  
  <pre><code> class Example {
      public static void main(String[] args) {
          try {
              System.out.println("xyz");
          } catch (Exception e) {
              System.out.println("Exception caught");
          } finally {
              System.out.println("abc");
          }
      }
   }
  </code></pre>
  
  <p>I thought there was no error in the program but my professor insisted that there was. Can anyone guess what the error is?</p>