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:

Verified
Correct Answer:
Verified
Q5: Which statement is correct about the EntityManager
Q6: Stateful Session beans contain<br>A) Home Interface<br>B) Remote
Q7: Which method of the request object is
Q8: Which of the following property of Java
Q9: Which of the following is not an
Q11: Which of the following is true?<br>A) Preserving
Q12: Which statement about JTA and resource-local entity
Q13: Choose the incorrect statement from the following
Q14: Which of the following is not a
Q15: Which method of the servlet is/are called