how to create thread in java?

Answer Posted / vijay tandel

Thread can be created by

1. Extending Thread Class
2. implementing Runnable interface

The second approach is better as if you want to use multiple
inheritance, interface is better option.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3865


What are functions in oop?

813


How do you define social class?

849


write a program that takes input in digits and display the result in words from 1 to 1000

2213


What does no cap mean?

829


What are the important components of cohesion?

777


Templates mean

1862


What is oops with example?

800


What is the diamond problem in inheritance?

850


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

2301


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1644


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

1765


What are the advantages of polymorphism?

791


What is coupling in oops?

851


Why polymorphism is used in oops?

815