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

Should you use singleton pattern?

996


What must a class do to implement an interface in java programming?

1140


why Java does not support multiple inheritances?

1209


what is a thread pool in java and why is it used?

1064


Why method overriding is used?

1167


What classes of exceptions may be thrown by a throw statement?

1013


What is a parameter example?

1031


What is the independent variable in an experiment?

1000


What is the different types of functions?

1104


Is it compulsory for a try block to be followed by a catch block in java for exception handling?

1058


What is a JAR file?

1107


What is the difference between the font and fontmetrics classes in java programming?

1261


what is mutual exclusion? : Java thread

1071


What is yield () in java?

931


Can you pass functions in java?

1081