Q43
Determine output of the following program code? public class Test public static void main(String args[]) int i; try i = calculate(); System.out.println(i); catch(Exception e) System.out.println("Error occured"); static int calculate() return (7/2);
A.
3
AnswerB.
3.5
C.
Error occured
D.
Compilation Error
E.
None of these
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board