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 are the types of abstraction?
What is polymorphism and types?
What is the purpose of polymorphism?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
Can we override main method?
what's the basic's in dot net
Is oop better than procedural?
Where is pseudocode used?
What is the real life example of polymorphism?
Why is abstraction used?
What is static in oop?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is the difference between encapsulation and polymorphism? How is class defined? can inline function declare in private part of class?