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 are callback interfaces?

584


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

570


why static class in java

1268


If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

557


the same information whether it will connect to the database or it will be used previous information?

560






What happens when a thread cannot acquire a lock on an object?

530


What is a modular application?

577


For which statements does it make sense to use a label?

576


wahts is mean by dynavalidatorform in struts/

1557


What is prototype?

596


What do you mean by Socket Programming?

540


what are getters and setters in Java with examples?

1276


Can we sent objects using Sockets?

637


Are we allowed to change the transaction isolation property in middle of a transaction?

553


Can you control when passivation occurs?

590