Java Programming and Web Technologies
Comprehensive quiz covering core Java concepts, J2EE web technologies (Servlets, JSP, Applets), AWT components, and programming fundamentals.
Questions
When deadlock occurs?
- Two process waits
- Two method waits
- two thread waits
- None of the above
----are the interface between a component and the low-level platform specific functionality that supports the component.
- Server
- Client
- Container
- Both b & c
what are the models available for event handling?
- event-inheritance model
- event-delegation model
- Both a & b
- Event-polymorhism model
what are different types of layout managers available in java AWT?-
- FlowLayout
- BorderLayout
- CardLayout
- All the above
A method in a class having the same method name with same arguments is said to be
- Method overriding
- Method overloading
- Method overwriting
- None of the above
What is the use of this()?
- constructor
- Destructor
- Class
- method
Which containers use a Border layout as their default layout?-
- Window
- Frame
- Dialog
- All the above
What are types of J2EE clients?
- Applets
- Application Clients
- Wireless Clients
- All the above
What are the contents of web module?
- JSP files
- Java classes &gif and html file
- web component deployment descriptors
- All the above
What are the different scope valiues for the jsp:useBean?
- request
- page
- session
- All the above
What is MVC architecture?
- Model-View-Controller
- Make-Value-Case
- Make-Value-Controller
- Model-Value-Controller
Classes defined in other classes, including those defined in methods
- Inner Class
- Sub class
- Private Class
- Both a &b
How many methods can clone able interface can have?
- One
- Two
- Three
- None of the above
---------are modules that extend request/response-oriented servers, such as java-enabled web servers
- Applet
- Servlets
- Scriptlet
- Both b& c
Who is loading the init() method of servlet?
- Web Server
- Web container
- Super Class
- None of the above
What are the different servers available for developing and deploying Servlets?
- Java Web Server
- Jrun
- Apache Server
- All the above
What is the way to communicate from applet to servlet?
- HTTP Communication
- Socket Communication
- RMI Communication
- All the above
How does applet recognize the height and width?-
- getHeight()
- getWidth()
- getParameters()
- Both a & b
Classes that allow primitive types to be accessed as objects.
- Wrapper Classes
- Super Classes
- Sub Classes
- None of the above
------------provides the capability to implement a growable array of objects
- Vector
- Hash table
- Linked list
- Enumeration