Write a program to handle an exception using try, catch and throw.
public class Main { public static void main(String[] args) { try { throw new Exception("Some exception."); } catch (Exception e) { e.printStackTrace(); } } }
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments