1.

In the given Program:class Dialog1{public static void main(String args[]){Frame f1 = new Frame("INDIA");f1.setSize(300,300);f1.setVisible(true);FileDialog d = new FileDialog(f1, "MyDialog");d.setVisible(true);String fname = d.getDirectory() + d.getFile();System.out.println("The Selection is" + fname);}}To make the Frame visible, which of the following statements are true?

A. f1.setClear(true);
B. f1.setVisible(true);
C. f1.setlook(true);
D. f1.setclean(true);
Answer» C. f1.setlook(true);


Discussion

No Comment Found