Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is object and example?

1113


What is purpose of inheritance?

1050


What is pure oop?

1048


What is object in oop?

1060


Describe these concepts: Polymorphism, Inheritance and Abstraction.

1138


Write a program to reverse a string using recursive function?

2274


How do you use inheritance in unity?

1024


What is inheritance in simple words?

1009


Why multiple inheritance is not allowed?

1077


What are the advantages of polymorphism?

976


Why is object oriented programming so hard?

1025


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

2494


What is polymorphism explain?

1191


Can we define a class within the interface?

986


What are objects in oop?

1039