Advanced Java Practice Test Quiz

10 Questions

Settings
Please wait...
Advanced Java Practice Test Quiz

Advanced Java. as the name implies, is not easy! It is very advanced and complicated. Much more than basic Java. But it makes computing much easier! Can be used on any device and anywhere.


Questions and Answers
  • 1. 
     When the ejbRemove method encounters a system problem ,it should throw_________
    • A. 

      Javax.ejb.DuplicateKeyException 

    • B. 

      Java.ejb.EJBException 

    • C. 

      Java.ejb.RemoveException 

    • D. 

       javax.ejb.NoSuchEntityException 

  • 2. 
    Which of these operators can skip evaluating right hand operand?
    • A. 

      !

    • B. 

      &

    • C. 

      &&

    • D. 

      (*)

  • 3. 
     ___________ is a block of java code in JSP that is used define class-wide variables and methods in the generated class file
    • A. 

       expression 

    • B. 

       declarations 

    • C. 

       element 

    • D. 

      Scriplets 

  • 4. 
    3. Which of the following is not an implicit object ?
    • A. 

      Date 

    • B. 

       page context 

    • C. 

       request 

    • D. 

      Out 

  • 5. 
    4. An Enterprise JavaBeans can be deployed in _______
    • A. 

       Web sphere 

    • B. 

      Weblogic 

    • C. 

       J2EE server 

    • D. 

       All of the above

  • 6. 
    Mapping files (*.hbm.xml) is used __________
    • A. 

      To configure the hibernate services (connection username, connection password, dialect etc)

    • B. 

      To map persistent objects to a relational database 

    • C. 

      To configure the hibernate services (connection driver class, connection URL) 

    • D. 

      All the above 

  • 7. 
    To determine the behaviour of the beans in an application , we make use of
    • A. 

      Java.awt.* 

    • B. 

       Java.beans.SimpleBeanInfo 

    • C. 

       Java.beans.Introspector 

    • D. 

       None of the above 

  • 8. 
     What is the output of relational operators?
    • A. 

      Double

    • B. 

      Integer

    • C. 

      Boolean

    • D. 

      Characters

  • 9. 
    Name the element within the tag element that defines the tag class that implements the functionality of tag
    • A. 

      Tag-name 

    • B. 

      Tag 

    • C. 

      Tag-class 

    • D. 

      Tag-uri 

  • 10. 
    Consider the following HTML page code: < html > < body > < a href='/servlet/HelloServlet' >POST< /a > < /body >< /html > Which method of HelloServIet will be invoked when the hyperlink is clicked?
    • A. 

      ServicePost 

    • B. 

      DoPost 

    • C. 

      DoHref 

    • D. 

      DoGet