what is use of threads how many ways to create thread

Answer Posted / poorna chandar rao.yerrabothu

thread is light whight processes its take low memory and low
proceesing time
there are two types thereds creatd
extending the thered class
implementing the runnable interface

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a data structure java?

509


What is break and continue statement?

618


What are the different types of constructor?

529


What is java thread dump, how can we get java thread dump of a program?

577


What is a consumer in java?

570






How hashmap increases its size in java?

495


What is the importance of hashcode() and equals() methods?

585


What is the difference between Java1.4 and Java1.5

1832


What are annotations in java?

623


What are the benefits of immutable objects?

544


What is an object's lock and which object's have locks in java programming?

571


Can we instantiate interface in java?

676


What does indexof return in java?

540


Explain about the performance aspects of core java?

558


What type of variable is gender?

552