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 is Activation Instantinator?

1907


Name the eight primitive java types.

593


Can I run seam with jdk 1.4 and earlier?

555


What if the static modifier is removed from the signature of the main method?

702


Can I use multiple html form elements with the same name?

578






What is the difference between ear, jar and war file?

573


Can you give me a simple example of using the requiredif validator rule?

603


Name three subclasses of the component class?

614


What is the immediate superclass of the applet class?

601


What modifiers may be used with an inner class that is a member of an outer class?

574


What is mdb and what is the special feature of that?

565


Define prototype?

583


What is the relationship between an event-listener interface and an event-adapter class?

554


What value does readline() return when it has reached the end of a file?

589


What is a modular application?

589