Multiple choice technology architecture

You are building a Java EE Stateless Session Bean with remote interfaces which you also would like to expose as a web service. Which of the following is false?

  1. When EJB is called by client, parameters will be passed by reference

  2. Methods must have RMI-IIOP compatible parameters and return types

  3. Methods must have JAXB compatible parameters and return types

  4. Use annotation @WebService and @WebMethod for deployment.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Remote interface calls use pass-by-value semantics due to RMI serialization requirements, not pass-by-reference. Remote EJB methods require RMI-IIOP compatible parameters. Web service methods require JAXB-compatible types for XML serialization. @WebService and @WebMethod annotations are used to expose beans as web services.