how to create thread in java?

Answer Posted / vamsikrishna

we can do it in two ways.
one is by extending thread class and other is by
implementing Runnable interface.
here the later one is good because when we are going for
mutiple inheritance only interface helps us

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the problem with multiple inheritance?

593


What is difference between polymorphism and inheritance?

627


What are objects in oop?

614


What is the difference between abstraction and polymorphism?

625


What is the highest level of cohesion?

587






What is polymorphism oop?

635


What are the 4 pillars of oop?

678


What are the data types in oop?

615


write a C++ program for booking using constructor and destructor.

2061


What are two types of polymorphism?

622


What is data binding in oops?

596


Why do we need oop?

679


Why is polymorphism needed?

609


What are classes oop?

604


c++ program to swap the objects of two different classes

1771