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
4
Answer:
.
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