When you write a Java program that uses a window interface w
     When you write a Java program that uses a window interface, what will happen if the statement  System exit(0);  Is omitted?  Write a Java statement that displays the decimal number 189.234870 on the output window with the following settings using printf method:  a. display 3 fraction digits  b. leave 3 white space ahead of the number  Identify class name, method name and argument(s) in the following statement:  String appleString = JOptionPane.showlnputDialog(\"Enter number of apples.\");  Class Name:  Method Name:  Argument:  What does the following Java statement display on the output window?  System-Out.print(\'\\\"\\tTest\\\\\\\\\ It\\\"\"\"\"):  What class is needed for each of the following cases?  a. drawing  b. create a GUI application  c. creating a Java applet  d. create an I/O window  \" 
  
  Solution
Question 21.
    System.exit(0); -> it exits the flow of execution when control executes this statement
Question 22. System.out.printf(\" %.3f\",189.234870);
 Question 23.
    String appleString=JOptionPane.showInputDialog(\"Enter number of apples?\");
    Class Name: JOptionPane
    Method Name:showInputDialog()
    Argument: Enter number of apples?
 Question 24.
 \"   Test\\\\
 It\"
 Question 25.
 a. Graphics
 b. JFrame
 c. JApplet
 d. JFrame

