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...

What are the two ways of implementing multi-threading in java?

Answer Posted / hrindows@gmail.com

Multi threaded applications can be developed in Java by using any of the following two methodologies:
1. By using Java.Lang.Runnable Interface. Classes implement this interface to enable multi threading. There is a Run() method in this interface which is implemented.
2. By writing a class that extend Java.Lang.Thread class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is anagram of a string?

932


What is bean? Where it can be used?

1072


What do you mean by inner class in java? Explain

1047


Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?

1010


How to connect to a remote database using Applet?

2521


Why stringbuilder is not thread safe in java?

998


What is the byte order of byte buffer?

995


How can you say java is object oriented?

1048


What is file in java?

1011


What are the advantages of functions?

900


What is multithreading in java?

1041


How do you declare a variable?

1077


Is array a class in java?

959


Can a class have multiple superclasses?

1142


Give any two differences between C++ and java.

1133