In how many ways we can the thread? in java

Answer Posted / himanshu kapoor

IF this question is that in how many ways we can use the thread in java?, then answer is that there are two ways
1. by implementing Runnable interface and
2. by inheriting Thread (abstract class)

Is This Answer Correct ?    24 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is collection class in java?

549


Compare overloading and overriding?

561


What is the difference between int and integer in java?

516


Can we convert stringbuffer to string?

566


How many types of the indexof method are there for strings?

493






What is update method called?

666


Does sprintf allocate memory?

595


Give us the name of the list layoutmanagers in java?

524


What are the wrapped, classes?

601


What are 3 data types?

548


Explain the difference between abstraction and encapsulation.

539


Does java initialize arrays to zero?

510


I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?

700


What are the advantages of passing this into a method instead of the current class object itself?

1174


What are methods of a class?

544