In howmany ways a thread can be created?

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


Please Help Members By Posting Answers For Below Questions

what are the activation groupworks?

1679


What is glasgow?

586


Write a singleton program?

572


Can I map more than one table in a cmp?

592


what is a non-repeatable read?

1832






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

552


What is the difference between java class and bean?

585


What are the purpose of introspection?

680


What is the map interface?

616


What is local interface. How values will be passed?

558


Explain the advantages and disadvantages of detached objects.

577


Name three component subclasses that support painting?

618


Where can I find seam examples and documentation?

569


Why do I get a duplicate name error when loading a jar file?

548


What is synchronization and why is it important?

547