For the following Questions The required keyboard IO stateme
     For the following Questions: The required keyboard I/O statements are predefined as:  import javax.swing. JOptionPane  Import java.util.Scanner;  Scanner kB = new Scanner  You have created a java source program: MyProg.java To compile the program under DOS -  Write down the compilation command  Suppose there is no syntax error, what will be the file name of the O/P created by the compiler?  What is the command you will use to execute the program?  ANS (1):  ANS (2):  ANS (3):  Write one console O/P statement in one line without any literals to display the following sentences in 4 lines by using the variable definitions as these:  String s1 = \"I like Java very much \'n\";  String s2 = \"Java is powerful, interesting and easy to learn \'n\";  String s3 = \" I made a commitment to myself that I shall master this technology to matter what, \'n\";  String s4 = \"I am inspired profoundly by my professor that with this technology in my mind it shall benefit all my life, \"n\";  Write one GUI O/P statement in one line without any literals to display the following sentences in 4 lines by using the variable definitions as these  String s1 = \" I like Java very much, n\";  String s2 = \"Java is powerful, interesting and easy to learn \'n\";  String s3 = \" I made a commitment to myself that I shall master this technology to matter what, \'n\";  String s4 = \"I am inspired profoundly by my professor that with this technology in my mind it shall benefit all my life, \"n\"; 
  
  Solution
1.
ANS 1 : javac MyProg.java
ANS 2: MyProg.class
ANS 3: JAVA MyProg
2.
System.out.println(s1+s2+s3+s4);
3.
MainWindow mainWindow = new MainWindow();
OutputBox oBox = new OutputBox(mainWindow);
oBox.show();
oBox.printLine(s1+s2+s3+s4);
or
MessageBox msgBox = new MessageBox(mainWindow)
msgBox.show(s1+s2+s3+s4);

