Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Java - GUI Applications
Java - GUI Applications
Java - GUI Applications
Ebook27 pages14 minutes

Java - GUI Applications

Rating: 4 out of 5 stars

4/5

()

Read preview

About this ebook

This book intends to educate Java practitioners on GUI Applications through questions and answers based on various interviews and personnel questions.
LanguageEnglish
Publishermehra
Release dateNov 8, 2018
ISBN9788829546572
Java - GUI Applications

Related to Java - GUI Applications

Related ebooks

Programming For You

View More

Related articles

Reviews for Java - GUI Applications

Rating: 3.9444444444444446 out of 5 stars
4/5

18 ratings6 reviews

What did you think?

Tap to rate

Review must be at least 10 words

  • Rating: 5 out of 5 stars
    5/5
    It is a beautiful book in which the author explains in a simple way
  • Rating: 5 out of 5 stars
    5/5
    Bom livro, minha família gosta desse tipo de nicho e já recomendei a eles pois o livro trás consigo todas as formas de executar um Java , otimo !!
  • Rating: 5 out of 5 stars
    5/5
    Gostei do livro, ele é sincero e objetivo no que diz respeito ao Java.. poderia ler duas ou mais vezes de tanto que gostei
  • Rating: 5 out of 5 stars
    5/5
    Adorei esse livro sobre Java, não conhecia muito bem so ouvia falar mas esse livro esclareceu muitas duvidas, ele é muito fácil de interpretar como também tem poucas páginas fáceis de acesso, adorei
  • Rating: 5 out of 5 stars
    5/5
    It's very useful book worth reading resourceful and impressive .. I liked it
  • Rating: 2 out of 5 stars
    2/5
    Book is ok , not so good. can be read once maybe

Book preview

Java - GUI Applications - Preeti Man

Choice

Multiple Choice

1. ____ is a library of classes that do not replace ____, but provide an improved alternative for creating GUI applications.

a. AWT, Swing

b. Swing, AWT

c. JFC, AWT

d. JFC, Swing

ANS: B

2. Programs that operate in a GUI environment must be

a. Event driven

b. In color

c. Dialog boxes

d. Layout managers

ANS: A

––––––––

7. To use the ActionListener interface, as well as other event listener interfaces, you must have the following import statement in your code:

a. import java.swing;

b. import java.awt;

c. import java.awt.*;

d. import java.awt.event.*;

ANS: D

8. Assume that message, contentPane, and panel have been created and initialized. In what order would you execute the following statements to display message on a JFrame object?

1. panel.add(message);

2. setVisible(true);

3. contentPane= getContentPane();

4. contentPane.add(panel);

a. 1, 2, 3, 4

b. 2, 1, 3, 4

c. 3, 4, 1, 2

d. 1, 3, 4, 2

––––––––

panel.add(message);

contentPane= getContentPane();

contentPane.add(panel);

setVisible(true);

ANS: D

9. When you write an action listener

Enjoying the preview?
Page 1 of 1