what is use of threads how many ways to create thread

Answer Posted / subash chandra bose l

there are many uses of threads and the main use is to
execute several process at once.

there are two ways of creating a thread and

1. extending a Thread class
2. implementing Runnable interface

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where are register variables stored?

594


What is the maximum size of hashmap in java?

541


What is singleton class example?

591


Can we make constructors static?

730


What is pojo class in java?

541






How to add menushortcut to menu item?

567


What is callablestatement? How you can call stored procedure to pass in parameter?

545


What are the ways to instantiate the class class?

602


String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

558


Can we create a constructor in abstract class?

575


What is difference in between java class and bean?

572


Explain about sets?

572


When will we use them?

601


What does %4d mean in java?

844


How do generics work?

522