recategorized by
505 views
1 votes
1 votes

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?

  1. f1.setClear(true);
  2. f1.setVisible(true);
  3. f1.setlook(true);
  4. f1.setclean(true);
recategorized by

1 Answer

Answer:

Related questions

453
views
1 answers
1 votes
gatecse asked Dec 9, 2020
453 views
Which of the following construct is not supported by Java Server Pages?$\text{JSP}$ Directives$\text{JSP}$ Scriptlets$\text{JSP}$ Actions$\text{JSP}$ Reaction
464
views
1 answers
1 votes
gatecse asked Dec 9, 2020
464 views
What is the output of the following program?abstract class sum { public abstract int sumOfTwo(int n1, int n2); public abstract int sumOfThree(int n1, int n2, int n3); ... $\text{Error}$
502
views
1 answers
1 votes
gatecse asked Dec 9, 2020
502 views
The static keyword is used in public static void main() declaration in Java:To enable the $\text{JVM}$ to make call to the main(), as class has not been ... $\text{JVM}$ to make call to the main(), as class has not been finalized
502
views
1 answers
1 votes
gatecse asked Dec 9, 2020
502 views
Which of the following Interface is not supported by $\text{JDBC}$ for connecting to Database in Java Programming language?Statement InterfacePrepared Statement InterfaceCallable Statement InterfaceDatabase Interface