Java Interview Questions

Java AWT Interview Questions II

  1. Which object is needed to group Checkboxes to make them exclusive? - CheckboxGroup.
  2. What are the types of Checkboxes and what is the difference between them? - Java supports two types of Checkboxes:
    • Exclusive
    • Non-exclusive.

J2EE Interview Questions

  1. What makes J2EE suitable for distributed multitiered Applications?
    - The J2EE platform uses a multitiered distributed application model. Application logic is divided into components according to function, and the various application components that make up a J2EE application are installed on different machines depending on the tier in the multitiered J2EE environment to which the application component belongs. The J2EE application parts are:

    • Client-tier components run on the client machine.
    • Web-tier components run on the J2EE server.
    • Business-tier components run on the J2EE server.
    • Enterprise information system (EIS)-tier software runs on the EIS server.

J2EE Interview Questions II

  1. What is the web container? - Servlet and JSP containers are collectively referred to as Web containers. It manages the execution of JSP page and servlet components for J2EE applications. Web components and their container run on the J2EE server.
  2. What is Enterprise JavaBeans (EJB) container? - It manages the execution of enterprise beans for J2EE applications.
    Enterprise beans and their container run on the J2EE server.
  3. What is Applet container? - IManages the execution of applets. Consists of a Web browser and Java Plugin running on the client together.

J2EE Interview Questions III

  1. What is J2EE Connector? - The J2EE Connector API is used by J2EE tools vendors and system integrators to create resource adapters that support access to enterprise information systems that can be plugged into any J2EE product. Each type of database or EIS has a different resource adapter. Note: A resource adapter is a software component that allows J2EE application components to access and interact with the underlying resource manager. Because a resource adapter is specific to its resource manager, there is typically a different resource adapter for each type of database or enterprise information system.

Java GUI Designer Interview Questions

  1. What advantage do Java’s layout managers provide over traditional windowing systems? - Java uses layout managers to lay out components in a consistent manner across all windowing platforms. Since Java’s layout managers aren’t tied to absolute sizing and positioning, they are able to accomodate platform-specific differences among windowing systems.
  2. What is the difference between the paint() and repaint() methods? - The paint() method supports painting via a Graphics object. The repaint() method is used to cause paint() to be invoked by the AWT painting thread.
  3. How can the Checkbox class be used to create a radio button? - By associating Checkbox objects with a CheckboxGroup

Pages (21): « First ... « 3 4 5 [6] 7 8 9 » ... Last »