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

How do you explain polymorphism?

1033


What are the 3 principles of oop?

1068


Why do we use encapsulation in oops?

987


Write a program to reverse a string using recursive function?

2297


What is the renewal class?

2706


How can you overcome the diamond problem in inheritance?

1143


What are the three main types of variables?

1078


What is the difference between a mixin and inheritance?

941


What is inheritance and how many types of inheritance?

1053


What is encapsulation selenium?

961


What is an interface in oop?

991


What does and I oop and sksksk mean?

1119


Explain the advantages of inheritance.

1090


What is stream in oop?

1251


what is the drawback of classical methods in oops?

3327