Here is one question for the "special" version of Whizlabs simulator that they are giving for free. Given the following code for the home interface of a stateful session bean, which of the following statements are true? (BTW, you can't even copy-paste from the damned thing. I have to type it to post it here.)
Correct options are: C. MyBean is the remote component interface. E. The code will be valid only if create and createBean methods throw RemoteException. My problem: What's up with the createBean method? Can you even have such a method in the home interface of a session bean?
Hello, 1) This method can only be in home interface of STATEFUL Session Bean (stateless session bean can only have create() without arguments). Usually customized "create" methods are used to setup/initialize state of stateFUL session beans. 2) Every method of *REMOTE* home interface has to declare *RemoteException* in method signature. They work over NETWORK.
Exam 1Z0-817: Upgrade OCP Java 6, 7 and 8 to Java SE 11 Developer Study Guide and Quiz