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?



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

Answer / 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

More Core Java Interview Questions

What is a singleton class in Java?

0 Answers  


How many types of assembly languages are there?

0 Answers  


What are the two categories of data types in the java programming language?

0 Answers  


Are the equals() and hashCode() protected methods of object class?

1 Answers   Avaya,


What is meant by main method?

0 Answers  


What is the difference between Trusted and Untrusted Applet ?

2 Answers   IBM,


what is the use of clone() in real time scenario?

2 Answers   Quinnox,


Why do we need hashset in java?

0 Answers  


What is the size of int in 64-bit jvm?

0 Answers  


Wha is the output from system.out.println(“hello”+null); ?

0 Answers  


program to validate the IP address? Validity range should be 0 to 255

1 Answers   Huawei,


What is final keyword in java? Give an example.

0 Answers  


Categories