Home > Articles

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

Quiz

  1. Which of the following is true for a session bean?

    1. It performs a task for a client

    2. It performs a task for multiple clients

    3. It represents shared data in a database

    4. It survives an EJB server crash

  2. Which of the following methods is invalid for a stateless session bean?

    1. ejbCreate()

    2. ejbCreate(...)

    3. ejbRemove()

    4. setSessionContext()

  3. Which of the following is first called by the container on a stateless session bean?

    1. ejbCreate();

    2. newInstance();

    3. ejbActivate();

    4. setSessionContext()

Quiz Answers

  1. A

  2. B

  3. B

  • + Share This
  • 🔖 Save To Your Account