On This Page

This set of J2EE Technologies Multiple Choice Questions & Answers (MCQs) focuses on J2Ee Technologies Set 1

Q1 | It is lightweight.It supports pluggable look and feel.It follows MVC (Model View Controller) architecture. The following specifies the advantages of
  • Swing
  • AWT
  • Both A & B
  • None of the above
Q2 | Swing is not a part of JFC (Java Foundation Classes) that is used to create GUI application?
  • TRUE
  • FALSE
  • none
  • all
Q3 | Which class provides many methods for graphics programming?
  • java.awt
  • java.Graphics
  • java.awt.Graphics
  • None of the above
Q4 | Implement the Listener interface and overrides its methods. Register the component with the Listener The Following steps are required to perform
  • Exception Handling
  • String Handling
  • Event Handling
  • None of the above
Q5 | The ActionListener interface is not used for handling action events?
  • TRUE
  • FALSE
  • none
  • all
Q6 | The ActionListener interface is used for handling action events,Forexample,it's used by a
  • JButton
  • JCheckbox
  • JMenuItem
  • All of these
Q7 | 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 ...
  • Constructor
  • Layout manager
  • Parameter
  • GUI
Q8 | MVC Architecture stands for
  • . Model View Controller
  • . Mode View Control
  • . Maximum View Control
  • . None
Q9 | Which is the container that doesn't contain title bar and MenuBars but it can have othercomponents like button, textfieldetc?
  • Window
  • Frame
  • Panel
  • all the above
Q10 | Which is the passive control that do not support any interaction with the user?
  • JList
  • JLabel
  • JTable
  • JTree
Q11 | . Component used for displaying data in tabular
  • JList
  • JTextArea
  • JTable
  • JTree
Q12 | Java Bean is a _____________ technology
  • Component
  • scripting
  • middle tier
  • None
Q13 | Manifest file is a special file that contains information about the files packed in
  • JAR file
  • GIF
  • JPEG
  • all the above
Q14 | Which of the following is not true about Java beans?
  • Implements java.io.Serializable interface
  • Extends java.io.Serializable class
  • Provides no argument constructor
  • Provides setter and getter methods for its properties
Q15 | Which file separator should be used by MANIFEST file?
  • /
  • \
  • //
Q16 | Which of the following is correct error when loading JAR file with duplicate name?
  • java.io.NullPointerException
  • java.lang.ClassNotFound
  • java.lang.ClassFormatError
  • java.lang.DuplicateClassError
Q17 | Java Beans are extremely secured?
  • TRUE
  • FALSE
  • none
  • all
Q18 | Which of the following is not a feature of Beans?
  • Introspection
  • Events
  • Persistence
  • Serialization
Q19 | Which services are provided to EJB components by the EJB container?
  • Transaction support
  • Persistence support
  • Naming support
  • All mentioned above
Q20 | Which case of a session bean obtains the UserTransaction object via the EJBContext using the getUserTransaction() method in EJB transaction management?
  • Bean-managed transactions
  • Container-managed transactions
  • Both A & B
  • None of the above
Q21 | 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.
  • TRUE
  • FALSE
  • none
  • all
Q22 | A message driven bean is like a stateful session bean that encapsulates the business logic and doesn't maintain state.
  • TRUE
  • FALSE
  • none
  • all
Q23 | Abbreviate the term JMS?
  • Java Message Service
  • Java Monitor Service
  • Java Message Session
  • Java Monitor Session
Q24 | JMS is mainly used to send and receive message from one application to another.
  • TRUE
  • FALSE
  • none
  • all
Q25 | Which session bean maintain their state between client invocations but are not required to maintain their state across server crashes or shutdowns?
  • Stateful Session Bean
  • Stateless Session Bean
  • Singleton Session Bean
  • None of the above