Given the following code in a stateful session bean business method;
try {
Socket skt = new Socket(x,y);
} catch (Exception ex) {
ex.printStackTrace();
}
assuming that x and y are the port and IP addresses respectively of a running service, which is running on the same server, which of the following is correct?
Options
- Failure in Compilation
- Failure in Deployment
- An exception is thrown at runtime
- Indeterminate. The code is not guaranteed to be ported to all EJB 2.0 container, though it may deploy.
CORRECT ANSWER : Indeterminate. The code is not guaranteed to be ported to all EJB 2.0 container, though it may deploy.
Write your comments