In howmany ways a thread can be created?
Answers were Sorted based on User's Feedback
Answer / harish
There are two different ways to create a Thread. One is
extends Thread class and implement Runnable Interface.
Better to go for Runnable interface. It will have a method
run(). You should override in the sub class. Even, you
can extend another class to the same thread class.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / rajshekhar
There are 2 ways to create a thread
1.By extending thread class
2.and the second one is by implementing runnable
interface.among the two the second one is more common and
better to use.
| Is This Answer Correct ? | 3 Yes | 1 No |
1. Extending the Thread class
2. Implementing Runnable interface in a class and then
passing its reference to a new Thread.
3. Creating an anonymous class to extend the Thread class.
4. Creating an anonymous class to implement the Runnable
interface and then passing its reference to a new Thread.
| Is This Answer Correct ? | 2 Yes | 1 No |
What are the design considerations while making a choice between using interface and abstract class?
can a static method be overridden
What class is used to create Server side object ?
what is JTA ?
which of the following authentication is stronger than the others? a. Http Basic b. Http DIGEST c. Form based
1) Scenario: I developed my application on local system and everything is perfect and tested. Now on UAT this application is deployed on clustered server environment. They are logical or physically clustered. But application is not working over there.  What is the issue with application?  What are the first things which come in your mind?
whether the connectionpooling used in struts?
Difference between hashmap and hashtable?
What are the states associated in the thread?
How will you pass parameters in RMI? Why do you serialize?
what is the Scope of Final Keyword in Java?
What is the relationship between an event-listener interface and an event-adapter class?