How many ways can a thread be used?

Answer Posted / subha narayan mohapatra

thread can be used in two ways-: extending the Thread class
and implementing Runnable interface.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What restrictions are placed on the values of each case of a switch statement?

731


How messaging services are done, before release of JMS?

1796


what is a portable component?

1648


What are the different approaches to represent an inheritance hierarchy?

791


How substring() method of string class create memory leaks?

758


What is the relationship between the canvas class and the graphics class?

749


Difference between swing and awt?

812


Have you used threads in Servelet?

2198


Describe activation process?

2262


How to deploy Jar, War files in J2EE?

2362


Write a singleton program?

770


What is a policy?

2003


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

1955


In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?

827


What is the difference between session and entity beans?

786