how to create thread in java?
Answer Posted / bijoy kumar baral
There is two ways for creating Thread in Java:
1.Extending Thread class
2.Implementing Runnable Interface
Second one is much more benificial than 1st one,as we can
able to avoid the overriden methods.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is the difference between a constructor and a destructor?
What is coupling in oops?
What are two types of polymorphism?
What is abstraction and encapsulation?
What are oops methods?
What is difference between polymorphism and inheritance?
What is abstraction encapsulation?
What is abstraction with example?
What do you mean by overloading?
Which language is pure oop?
How do you use inheritance in unity?
What is encapsulation example?
How oops is better than procedural?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
Can main method override?