1.

What values will be displayed in JOptionPane when the following code is executed ?int a = 5, b = 2;while (a < 20){a = a + b;b = a – b;JOptionPane. showMessageDialog (null,a);}

Answer»

7

12

19

31



Discussion

No Comment Found

Related InterviewSolutions