how to create thread in java?

Answer Posted / poorna chandar rao

thread is created in two ways
one is extends Thread class
and another way is implements runnable interface

in thees two ways implements runnable interface is better
option because it supports multilevle thread cocept

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does I oop mean?

613


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1833


program for insertion ,deletion,sorting in double link list

2276


What polymorphism means?

620


What is difference between oop and pop?

611






What is encapsulation in oop?

601


What is a null tree?

627


write string class as your own class in java without using any built-in function

1976


What is encapsulation in ict?

603


How oops is better than procedural?

583


What does and I oop mean in text?

620


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1413


What is a superclass in oop?

665


Whats oop mean?

586


What are oops functions?

583