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

Why are my checkboxes not being set from on to off?

637


AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?

1630


How database connectivity in XML is achieved?

1765


Why is string immutable in java?

577


When a thread blocks on i/o, what state does it enter?

570






Which javutil classes and interfaces support event handling?

579


What does module-relative mean?

573


difference between  ejb,struts,hibernate,spring and jsp

2296


Can you control when passivation occurs?

594


what are RemoteObjects?

2252


Explain about thread synchronization inside a monitor?

1993


Name the eight primitive java types.

591


What event results from the clicking of a button?

691


What is a tasks priority and how is it used in scheduling?

542


Is a class a subclass of itself?

588