InterviewSolution
Saved Bookmarks
| 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» No values will be displayed in JoptionPane because it will give exception in thread "main", due to null. |
|