1) The following code is used to connect to an external service and send it a message. If either of the connect() or send() methods fail, an exception of type Exception is thrown. Modify the code so that the functionality is the same but the Connection is always closed.
Connection c = new Connection(); c.connect(�service�); c.send(�message�); c.close();
2) What is the standard tool use for generating documentation pages from doc comments.
3)What is the name of the class library most commonly used when generating unit tests.
4)A way to enable a class (that implements public void run()) to run a thread is to have it extend the Thread class. How else can we enable a class to run a thread.
Ease up. There is nothing "urgent" for us about you waiting until the last minute to prepare for your interview. All of these questions are extremely basic Java questions. You could answer all of them by spending a few minutes searching or browsing the Java Tutorial.