Q.

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?

A. Failure in Compilation
B. Failure in Deployment
C. An exception is thrown at runtime
D. Indeterminate. The code is not guaranteed to be ported to all EJB 2.0 containers, though it may deploy.
Answer» D. Indeterminate. The code is not guaranteed to be ported to all EJB 2.0 containers, though it may deploy.
1.1k
0
Do you find this helpful?
17

Discussion

No comments yet