

MCQOPTIONS
Saved Bookmarks
1. |
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» E. | |