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
What is collection class in java?
Compare overloading and overriding?
What is the difference between int and integer in java?
Can we convert stringbuffer to string?
How many types of the indexof method are there for strings?
What is update method called?
Does sprintf allocate memory?
Give us the name of the list layoutmanagers in java?
What are the wrapped, classes?
What are 3 data types?
Explain the difference between abstraction and encapsulation.
Does java initialize arrays to zero?
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?
What are the advantages of passing this into a method instead of the current class object itself?
What are methods of a class?