Answer Posted / 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 |
Post New Answer View All Answers
How is a java object message delivered to a non-java client?
What do you mean by Socket Programming?
What must a class do to implement an interface?
Why is string immutable in java?
What are the difference between RMI and CORBA?
Can I run seam with jdk 1.4 and earlier?
Describe activation process?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
What is the immediate superclass of the applet class?
When is the best time to validate input?
What are the different approaches to represent an inheritance hierarchy?
how i secure my site with the https protocol.what are the steps?
Explain about thread synchronization inside a monitor?
Do I have to use jsps with my application?
Explain the different types of memory used by jvm?