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
Is a class a subclass of itself?
What are the services in RMI ?
Java is fully object oriented languages or not?
What is a clone?
What are the different types of exception?
What is abstract schema?
What is the difference between system.out ,system.err and system.in?
Why is string immutable in java?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions
What is the diffrence between a local-tx-datasource and a xa-datasource?
If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?
What is the form of storage space in java?
What is the purpose of the notify() method?
Explain the steps in details to load the server object dynamically?