public class Exceptions {
public static void main(String args[]) {
int i = 100;
int j = 0;
try {
int k = i / j;
System.out.println("kw");
System.out.println("kk");
} catch (java.lang.ArithmeticException ae) {
System.out.println("Arithmetic Exception handled");
}
System.out.println("Hello World");
}
}
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.