0

Java program using try and catch block

to read an integer value and display it using scanner class

7th Dec 2016, 4:59 AM
Min Yoon
Min Yoon - avatar
1 Antwort
0
class A{ public static void main(String[] args){ try{ int I=1; System.out.println(I÷0) }catch(Exception e){ e.printStackTrace() } }//main close }// class close
8th Dec 2016, 8:12 AM
Mani Kanta
Mani Kanta - avatar