Home Java Technology Java Basics Java Basic Sample Interview Questions - 4

Login Form




Java Basic Sample Interview Questions - 4 Print E-mail
  1. What are the states of a thread? - 1. New 2. Runnable 3. Not Runnable 4. Dead
  2. What is a socket? - A socket is an endpoint for communication between two machines.
  3. 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.
  4. What are the threads will start, when you start the java program? - Finalizer, Main, Reference Handler, Signal Dispatcher