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?

🎲 Try a Random Question  |  Total Questions in Quiz: 182  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Enterprise Computing With Java Practice Test — practice the complete quiz, review flashcards, or try a random question.

Enterprise Java is the use of Java for application development in enterprise-scale software, and merges a collection of APIs and application servers that implement those APIs. Enterprise Java also includes related technologies, such as the Spring Framework.


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?