how to create thread in java?

Answer Posted / rahul madanan

There are two methods to create thread in java :
(1). By extending the Thread class.
(2). By implementing the Runnable interface.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a destructor be called directly?

607


What are oops functions?

586


Can an interface inherit a class?

565


Write a c++ program to display pass and fail for three student using static member function

2818


What is destructor give example?

608






What is polymorphism and example?

594


Why oops is important?

616


State what is encapsulation and friend function?

702


How Do you Code Composition and Aggregation in C++ ?

24205


What is oops in programming?

570


How to improve object oriented design skills?

570


program for insertion ,deletion,sorting in double link list

2284


What language is oop?

597


What do you mean by overloading?

585


What is polymorphism in oops with example?

533