Hello Ranchers
What would be the correct answer to this question?
I think it is 2.
public synchronized void txTest(int i)
{
System.out.println("Integer is: " + i);
}
What is the outcome of attempting to compile and execute the method above,
assuming it is implemented in a stateful session bean?
Choice 1 Run-time error when bean is created
Choice 2 The method will run, violating the
EJB specification.
Choice 3 Compile-time error for bean implementation class
Choice 4 Compile-time error for remote interface
Choice 5 Run-time error when the method is executed