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

Why do we declare a class static?

1141


What are the 8 data types in java?

987


From the two, which would be easier to write: synchronization code for ten threads or two threads?

1048


Is it possible to use Semaphore/ Mutex in an Interrupt Handler?

1083


Can we convert stringbuffer to string?

1003


What about main thread in java?

1110


What is a condition in java?

996


What is the role of the java.rmi.naming class?

1055


What are kinds of processors?

990


What is var keyword ?

1177


Explain the available thread states in a high-level?

955


Explain the importance of finally over return statement?

1038


What is the use of put method?

948


What are static variables and functions?

1133


What is the function of http?

1028