What is arithmeticexception?

1 answer

Answer

1008881

2026-04-25 00:40

+ Follow

the errors arriving during the execution of a program when there is a mistake of the programmer in applying the correct mathematical logic

eg: int a= 5;

int b=0;

System.out.print(a/b);

System.out.print("correct answer");

in this eg. a runtime error will be shown and to remove it we can use try catch block

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.