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 we make game by using c

3722


What do you mean by abstraction?

819


What is coupling in oops?

824


What is encapsulation selenium?

755


What are different oops concepts?

778


What is overloading in oops?

837


Which is better struts or spring?

812


What is persistence in oop?

867


What is overriding vs overloading?

790


Can abstract class have normal methods?

793


What are objects in oop?

827


What causes polymorphism?

821


What is encapsulation process?

788


Why is polymorphism used?

777


Can we define a class within the interface?

794