K
Q. What will be the output of the following Java program? class exception_handling { public static void main(String args[]) { try { int a, b; b = 0; a = 5 / b; System.out.print("A"); } catch(ArithmeticException e) { System.out.print("B"); } } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. What is the output of the below Java code snippet that use Autoboxing and Unboxing?
Q. Unary minus ‘-‘ has associativity from
Q. What is the purpose of the "@Override" annotation in Java?
Q. What is the character encoding standard used in Java language?
Q. The method toString() is a public member of the class _____________.
Q. What is true about constructor?
Q. What is the output of the following code snippet?
Discusssion
Login to discuss.