Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyC#exceptions try catchSingle-choice MCQ

Inside a catch block, what is the difference between 'throw;' and 'throw ex;'?

try { DoWork(); } catch (Exception ex) { Log(ex); throw; // vs. throw ex; }