Java Programming and Web Technologies

Comprehensive quiz covering core Java concepts, J2EE web technologies (Servlets, JSP, Applets), AWT components, and programming fundamentals.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

When deadlock occurs?

  1. Two process waits
  2. Two method waits
  3. two thread waits
  4. None of the above
Question 2 Multiple Choice (Single Answer)

----are the interface between a component and the low-level platform specific functionality that supports the component.

  1. Server
  2. Client
  3. Container
  4. Both b & c
Question 3 Multiple Choice (Single Answer)

what are the models available for event handling?

  1. event-inheritance model
  2. event-delegation model
  3. Both a & b
  4. Event-polymorhism model
Question 4 Multiple Choice (Single Answer)

what are different types of layout managers available in java AWT?-

  1. FlowLayout
  2. BorderLayout
  3. CardLayout
  4. All the above
Question 5 Multiple Choice (Single Answer)

A method in a class having the same method name with same arguments is said to be

  1. Method overriding
  2. Method overloading
  3. Method overwriting
  4. None of the above
Question 6 Multiple Choice (Single Answer)

What is the use of this()?

  1. constructor
  2. Destructor
  3. Class
  4. method
Question 7 Multiple Choice (Single Answer)

Which containers use a Border layout as their default layout?-

  1. Window
  2. Frame
  3. Dialog
  4. All the above
Question 8 Multiple Choice (Single Answer)

What are types of J2EE clients?

  1. Applets
  2. Application Clients
  3. Wireless Clients
  4. All the above
Question 9 Multiple Choice (Single Answer)

What are the contents of web module?

  1. JSP files
  2. Java classes &gif and html file
  3. web component deployment descriptors
  4. All the above
Question 10 Multiple Choice (Single Answer)

What are the different scope valiues for the jsp:useBean?

  1. request
  2. page
  3. session
  4. All the above
Question 11 Multiple Choice (Single Answer)

What is MVC architecture?

  1. Model-View-Controller
  2. Make-Value-Case
  3. Make-Value-Controller
  4. Model-Value-Controller
Question 12 Multiple Choice (Single Answer)

Classes defined in other classes, including those defined in methods

  1. Inner Class
  2. Sub class
  3. Private Class
  4. Both a &b
Question 13 Multiple Choice (Single Answer)

How many methods can clone able interface can have?

  1. One
  2. Two
  3. Three
  4. None of the above
Question 14 Multiple Choice (Single Answer)

---------are modules that extend request/response-oriented servers, such as java-enabled web servers

  1. Applet
  2. Servlets
  3. Scriptlet
  4. Both b& c
Question 15 Multiple Choice (Single Answer)

Who is loading the init() method of servlet?

  1. Web Server
  2. Web container
  3. Super Class
  4. None of the above
Question 16 Multiple Choice (Single Answer)

What are the different servers available for developing and deploying Servlets?

  1. Java Web Server
  2. Jrun
  3. Apache Server
  4. All the above
Question 17 Multiple Choice (Single Answer)

What is the way to communicate from applet to servlet?

  1. HTTP Communication
  2. Socket Communication
  3. RMI Communication
  4. All the above
Question 18 Multiple Choice (Single Answer)

How does applet recognize the height and width?-

  1. getHeight()
  2. getWidth()
  3. getParameters()
  4. Both a & b
Question 19 Multiple Choice (Single Answer)

Classes that allow primitive types to be accessed as objects.

  1. Wrapper Classes
  2. Super Classes
  3. Sub Classes
  4. None of the above
Question 20 Multiple Choice (Single Answer)

------------provides the capability to implement a growable array of objects

  1. Vector
  2. Hash table
  3. Linked list
  4. Enumeration