Science, asked by tanaychowdary, 8 months ago

2-write a Java program to demonstrate the handlingof multiple unchecked Exception using by followed by
multiple catch blocks

only correct answers others I going to report...☺️​

Answers

Answered by raghuramansbi
4

Answer:

.\huge{\underline{\mathtt{\red{❥A}\pink{N}\green{S}\blue{W}\purple{E}\orange{R}}}}

public static void main(String[] args) {

try {

// code which might raise exception

// arithmetic operation

int result = 18/0;

System.out.println("Result of division : "

+ result);

// String operation

String str = null;

System.out.println("Lenght of the String : "

+ str.length());

// Number conversion

String s1 = "abc";

int

Similar questions