Solved

Given the Following Code in a Stateful Session Bean Business

Question 24

Multiple Choice

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.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents