aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Test 1 Java Swings
  • Which of the following statements is must in a Java progr...
Multiple choice

Which of the following statements is must in a Java program for creating a frame?

  1. import java.awt.*;

  2. import java.awt.event.*;

  3. import java.awt.frame;

  4. 1, 2 and 3

  5. only 1 and 2

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Option 3 is also required. This option is correct.

Keep practicing — related questions

  • The following program is written to create a frame. The program seems to be correct but when it is compiled...
  • The import statement needed to use JOptionPane is
  • To create swing components, which of the following is imported?
  • Which of the following methods cannot be invoked from the instance of Frame class in AWT?
  • Which of the following methods cannot be invoked from the instance of Frame class in AWT?
  • Which of the following methods cannot be invoked from the instance of Frame class in AWT?
  • Which of the following methods cannot be invoked from the instance of Frame class in AWT?
  • Which of the following will throw an error while compilation 1) import java.awt.*; package Mypackage; class...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy