|
Java Basic Sample Interview Questions - 4 |
|
|
- What are the states of a thread? - 1. New 2. Runnable 3. Not Runnable 4. Dead
- What is a socket? - A socket is an endpoint for communication between two machines.
- How will you establish the connection between the servlet and an applet? - Using the URL, I will create the connection URL. Then by openConnection method of the URL, I will establish the connection, through which I can be able to exchange data.
- What are the threads will start, when you start the java program? - Finalizer, Main, Reference Handler, Signal Dispatcher
|