Java Applets, Servlets and Java Beans
Test your knowledge of Java web technologies including applets, servlets, Java Beans, and related enterprise Java concepts
Questions
___________ interface allows a designer to provide a graphical user interface through which bean may be configured.
- Customizer
- AppletInitializer
- BeanInfo
- DesignMode
- PropertyEditor
Which of the following interfaces in Java Beans API allows a designer to specify information about the properties, events and methods of a bean?
- Customizer
- Visibility
- BeanInfo
- DesignMode
- None of these
Which of the following methods in Applet programming is used to extract the name part of an item from the class and return it?
- stop()
- getName()
- accept()
- chat()
- move()
Which of the following classes in servlets implements the Servlet and ServletConfig interface?
- ServletOutputStream
- ServletInputStream
- GenericServlet
- ServletException
- None of these
Which of the following classes in servlet developers extends in order to process HTTP request that allows state information to be stored on a client's machine?
- HttpServlet
- HttpSessionBindingEvent
- HttpUtils
- Cookie
- None of these
_______________ Servlet interface method is called when the servlet is unloaded.
- void destroy()
- string getServletInfo()
- string getScheme()
- int getServerPort()
- string getServerName()
In imageIcon class, which of the following methods returns the width of the icon in pixels?
- getIconHeight()
- paintIcon()
- getIconWidth()
- none of these
Which of the following parameters in the applet specifies the number of milliseconds between each billboard?
- bgcolor
- billboards
- delay
- none of these
Which of the following methods is used in image processing of applet to modify the work_pixels array for the next cell?
- smash()
- setupFillPixels()
- createRandomArray()
- none of these
Which of the following methods in applet programming is used to create and initialize the next billboard object that the applet will use?
- init()
- parseBillData()
- mouseMoved()
- none of these
Which of the following methods in HttpServletRequest returns any query string in the URI?
- String getMethod()
- String getQueryString()
- String getPathInfo()
- String getRemoteUser()
- String getRequestURI()
Which of the following interfaces of Java servlets allows servlets to get initialization parameters?
- ServletConfig
- ServletContext
- Servlet
- ServletRequest
- ServletResponse
Which of the following in java.beans analyses a bean and constructs a BeanInfo object that describes the component?
- MethodDescriptor
- ParameterDescriptor
- Introspector
- PropertyDescriptor
Which of the following classes in Java contains swing version of an applet?
- JButton
- JCheckBox
- JApplet
- AbstractButton
- JLabel