Java Web Programming Fundamentals
Covers Java web technologies including servlets, applets, AWT/Swing components, event listeners, and basic HTTP handling. Good foundation for understanding client and server-side Java programming.
Questions
Which of the following methods of SmashTransition.java class modifies the work_pixels array for the next cell?
- init()
- Smash()
- setupFillPixels()
- Tear()
- createUnrollAmountArray()
Which of the following methods of mouse sends the browser to the URL that corresponds to the currently selected menu item?
- mouseExited()
- mouseDragged()
- mouseMoved()
- mouseReleased()
- mouseTrace()
Which of the following interfaces defined in java.beans package allows a bean to execute in environments where a graphical user interface is not available?
- Appletinitializer
- DesignMode
- Visibility
- Customizer
- BeanInfo
Which of the following interfaces of javax.servlet package indicates that the servlet is thread safe?
- ServletResponse
- SingleThreadModel
- ServletRequest
- Servlet
- destroy()
Which of the following tags of javadoc utility states the release when a specific change was introduced?
- @since
- @author
- @param
- @see
- @return
Which of the following is an interface for objects that want to produce data for images?
- MemoryImageSource
- ImageProducer
- ImageConsumer
- PixelGrabber
- CropImageFilter
Which of the following interfaces consists of methods to recognize when a window is activated, closed, deactivated or quit in the applet?
- TextListener
- MouseListener
- WindowListener
- ItemListener
- FocusListener
Which of the following interfaces is used in Java whenever a user wants a component to be resized, moved, shown or hidden in an applet?
- ActionListener
- AdjustmentListener
- ComponentListener
- ContainerListener
- FocusListener
Which of the following item events generates text events when the user enters a character?
- Scroll Bar
- Button
- Checkbox
- Text Component(s)
- Choice
Which of the following methods of an applet is called each time your applet's output must be redrawn?
- start()
- init()
- paint()
- stop()
- destroy()
Which of the following classes in Java servlets provides an input stream for reading requests from a client?
- GenericServlet
- ServletInputStream
- ServletOutputStream
- ServletException
- Servlet
Which of the following classes in Servlets provides methods to handle HTTP requests and responses?
- Cookie
- HttpSessionBindingEvent
- HttpServlet
- HttpUtils
- HttpSessionContext
Which of the following features is available in Java?
- Java supports structures or unions.
- Java allows the use of default arguments.
- Java includes preprocessor and support the preprocessor directives.
- Java supports typedef.
- Java supports use of applets.
Which of the following methods of ServletRequest class is used to return the string equivalent of the client host name?
- getParameter()
- getScheme()
- getServerPort()
- getRemoteHost()
- getServerName()
Which of the following methods of the HttpSevletResponse interface is used to write a cookie to a users machine?
- containsHeader()
- encodeURL()
- addCookie()
- getMethod()
- getRemoteUser()