Deck 1: Java GUI and Beans

Full screen (f)
exit full mode
Question
It is lightweight.It supports pluggable look and feel.It follows MVC (Model View Controller) architecture. The following specifies the advantages of

A)Swing
B)AWT
C)Both A & B
D)None of the above
Use Space or
up arrow
down arrow
to flip the card.
Question
Swing is not a part of JFC (Java Foundation Classes) that is used to create GUI application?

A)True
B)False
C)none
D)all
Question
Which class provides many methods for graphics programming?

A)java.awt
B)java.Graphics
C)java.awt.Graphics
D)None of the above
Question
Implement the Listener interface and overrides its methods. Register the component with the Listener The Following steps are required to perform

A)Exception Handling
B)String Handling
C)Event Handling
D)None of the above
Question
The ActionListener interface is not used for handling action events?

A)True
B)False
C)none
D)all
Question
The ActionListener interface is used for handling action events,Forexample,it's used by a

A)JButton
B)JCheckbox
C)JMenuItem
D)All of these
Question
JFramemyFrame = new JFrame (); Any command (such as the one listed above) which creates a new object of a specific class (in this case a new JFrame object called myFrame) is generally called a ..

A)Constructor
B)Layout manager
C)Parameter
D)GUI
Question
MVC Architecture stands for

A) Model View Controller
B) Mode View Control
C) Maximum View Control
D) None
Question
Which is the container that doesn't contain title bar and MenuBars but it can have other components like button, textfieldetc?

A)Window
B)Frame
C)Panel
D)all the above
Question
Which is the passive control that do not support any interaction with the user?

A)JList
B)JLabel
C)JTable
D)JTree
Question
Component used for displaying data in tabular

A)JList
B)JTextArea
C)JTable
D)JTree
Question
Java Bean is a _____________ technology

A)Component
B)scripting
C)middle tier
D)None
Question
Manifest file is a special file that contains information about the files packed in

A)JAR file
B)(GIF)
C)(JPEG)
D)all the above
Question
Which of the following is not true about Java beans?

A)Implements java.io.Serializable interface
B)Extends java.io.Serializable class
C)Provides no argument constructor
D)Provides setter and getter methods for its properties
Question
Which file separator should be used by MANIFEST file?

A)/
B)\
C)-
D)//
Question
Which of the following is correct error when loading JAR file with duplicate name?

A)java.io.NullPointerException
B)java.lang.ClassNotFound
C)java.lang.ClassFormatError
D)java.lang.DuplicateClassError
Question
Java Beans are extremely secured?

A)True
B)False
C)none
D)all
Question
Which of the following is not a feature of Beans?

A)Introspection
B)Events
C)Persistence
D)Serialization
Question
Which services are provided to EJB components by the EJB container?

A)Transaction support
B)Persistence support
C)Naming support
D)All mentioned above
Question
Which case of a session bean obtains the UserTransaction object via the EJBContext using the getUserTransaction() method in EJB transaction management?

A)Bean-managed transactions
B)Container-managed transactions
C)Both A & B
D)None of the above
Question
EJB QL is a Query Language provided for navigation across a network of enterprise beans and dependent objects defined by means of container managed persistence.

A)True
B)False
C)none
D)all
Question
A message driven bean is like a stateful session bean that encapsulates the business logic and doesn't maintain state.

A)True
B)False
C)none
D)all
Question
Abbreviate the term JMS?

A)Java Message Service
B)Java Monitor Service
C)Java Message Session
D)Java Monitor Session
Question
JMS is mainly used to send and receive message from one application to another.

A)True
B)False
C)none
D)all
Question
Which session bean maintain their state between client invocations but are not required to maintain their state across server crashes or shutdowns?

A)Stateful Session Bean
B)Stateless Session Bean
C)Singleton Session Bean
D)None of the above
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 1: Java GUI and Beans
1
It is lightweight.It supports pluggable look and feel.It follows MVC (Model View Controller) architecture. The following specifies the advantages of

A)Swing
B)AWT
C)Both A & B
D)None of the above
Swing
2
Swing is not a part of JFC (Java Foundation Classes) that is used to create GUI application?

A)True
B)False
C)none
D)all
True
3
Which class provides many methods for graphics programming?

A)java.awt
B)java.Graphics
C)java.awt.Graphics
D)None of the above
java.awt.Graphics
4
Implement the Listener interface and overrides its methods. Register the component with the Listener The Following steps are required to perform

A)Exception Handling
B)String Handling
C)Event Handling
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
The ActionListener interface is not used for handling action events?

A)True
B)False
C)none
D)all
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
The ActionListener interface is used for handling action events,Forexample,it's used by a

A)JButton
B)JCheckbox
C)JMenuItem
D)All of these
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
JFramemyFrame = new JFrame (); Any command (such as the one listed above) which creates a new object of a specific class (in this case a new JFrame object called myFrame) is generally called a ..

A)Constructor
B)Layout manager
C)Parameter
D)GUI
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
MVC Architecture stands for

A) Model View Controller
B) Mode View Control
C) Maximum View Control
D) None
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
Which is the container that doesn't contain title bar and MenuBars but it can have other components like button, textfieldetc?

A)Window
B)Frame
C)Panel
D)all the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
Which is the passive control that do not support any interaction with the user?

A)JList
B)JLabel
C)JTable
D)JTree
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
Component used for displaying data in tabular

A)JList
B)JTextArea
C)JTable
D)JTree
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
Java Bean is a _____________ technology

A)Component
B)scripting
C)middle tier
D)None
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
Manifest file is a special file that contains information about the files packed in

A)JAR file
B)(GIF)
C)(JPEG)
D)all the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
Which of the following is not true about Java beans?

A)Implements java.io.Serializable interface
B)Extends java.io.Serializable class
C)Provides no argument constructor
D)Provides setter and getter methods for its properties
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
Which file separator should be used by MANIFEST file?

A)/
B)\
C)-
D)//
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
Which of the following is correct error when loading JAR file with duplicate name?

A)java.io.NullPointerException
B)java.lang.ClassNotFound
C)java.lang.ClassFormatError
D)java.lang.DuplicateClassError
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
Java Beans are extremely secured?

A)True
B)False
C)none
D)all
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
Which of the following is not a feature of Beans?

A)Introspection
B)Events
C)Persistence
D)Serialization
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
Which services are provided to EJB components by the EJB container?

A)Transaction support
B)Persistence support
C)Naming support
D)All mentioned above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
Which case of a session bean obtains the UserTransaction object via the EJBContext using the getUserTransaction() method in EJB transaction management?

A)Bean-managed transactions
B)Container-managed transactions
C)Both A & B
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
EJB QL is a Query Language provided for navigation across a network of enterprise beans and dependent objects defined by means of container managed persistence.

A)True
B)False
C)none
D)all
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
A message driven bean is like a stateful session bean that encapsulates the business logic and doesn't maintain state.

A)True
B)False
C)none
D)all
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
Abbreviate the term JMS?

A)Java Message Service
B)Java Monitor Service
C)Java Message Session
D)Java Monitor Session
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
JMS is mainly used to send and receive message from one application to another.

A)True
B)False
C)none
D)all
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
Which session bean maintain their state between client invocations but are not required to maintain their state across server crashes or shutdowns?

A)Stateful Session Bean
B)Stateless Session Bean
C)Singleton Session Bean
D)None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.