can you please why error comes in line 13 as unreported exception ,must be caught pr declared to be thrown
class Demo {
public static void main(String args[]) {
try {
int x = 43 / 0;
} catch (ArithmeticException ob) {
throw ob;
}
try {
int x = 43 / 0;
} catch (Exception ob) {
throw ob;
}
Exception ob = new Exception();
throw ob;
// Line 13 unreported exception Exception; must be caught or declared to be thrown
}
}