OOPS
April 19, 2024Question 3385 – Higher-Education-and-Politics
April 19, 2024OOPS
|
Question 41
|
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?
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?
|
f1.setClear(true);
|
|
|
f1.setVisible(true);
|
|
|
f1.setlook(true);
|
|
|
f1.setclean(true);
|
Correct Answer: B
