I think, for this question, onc need to good at Throwable or Exception handling classes hierarchy. Here, "Error" is thrown which is subclass of "Throwable" and "Exception" is subclass of "Throwbale" but it is NOT "Error", that's why answer is E .
[Edited typo ]
Joined: Feb 26, 2009
Could you please elaborate. As per Sneha the ans is E. Whether Exception is thrown or Throwable is thrown or Error is thrown?
Quoting your sources is required on JavaRanch - when you copy a question from a book, mock exam or other source, you must tell us where you copied it from. If you don't quote your sources, your question will be deleted, and if you repeatedly do not quote your sources, your account might even be locked by the administrators.
Please tell us exactly where you copied the above question from.