4. Reading the program and write the running results. public class ExceptionDemo{ public static void main(String args[ D{ int i = 0. j= 1, k; try{ k =j/i; }catch(ArithmeticException e){ System.out.println("Arithmetic Exception"); }catch (Exception e){ System.out.printin("Exception"); }finally { System.out.println("Finally"); } The above running results:

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter12: Exception Handling
Section: Chapter Questions
Problem 20RQ
icon
Related questions
Question

please quickly thanks !

4.
Reading the program and write the running results.
public class ExceptionDemo{
public static void main(String args[D}
int i= 0, j= 1, k;
try{
k = j/i;
}catch(ArithmeticException e){
System.out.println("Arithmetic Exception");
}catch (Exception e){
System.out.printin("Exception");
}finally {
System.out.println("Finally");
}
}
The above running results:
Transcribed Image Text:4. Reading the program and write the running results. public class ExceptionDemo{ public static void main(String args[D} int i= 0, j= 1, k; try{ k = j/i; }catch(ArithmeticException e){ System.out.println("Arithmetic Exception"); }catch (Exception e){ System.out.printin("Exception"); }finally { System.out.println("Finally"); } } The above running results:
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Files and Directory
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,