how to create thread in java?

Answer Posted / bijoy kumar baral

There is two ways for creating Thread in Java:
1.Extending Thread class

2.Implementing Runnable Interface

Second one is much more benificial than 1st one,as we can
able to avoid the overriden methods.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pure oop?

876


Whats oop mean?

806


What are benefits of oop?

901


What does and I oop mean in text?

876


What is meant by multiple inheritance?

966


What is the advantage of oop over procedural language?

858


What is constructor overloading in oop?

889


What is class encapsulation?

852


What is the difference between static polymorphism and dynamic polymorphism?

869


Why is polymorphism important in oop?

836


What is persistence in oop?

887


Which language is not a true object oriented programming language?

897


What is encapsulation in oops?

780


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

2018


How long to learn object oriented programming?

841