how to create thread in java?
Answer Posted / gurpreet singh
there are two ways to creat the thread:
1. by implement Runnable interface
2. by extends Thread
NOW which one is batter apprach
implement Runnable Thread is batter apporach
because in inheritance does not allow its
class to extends more than one...
Where we use mutiple inheritance then we creat
a Thread by using implement runnable interface
that why its batter apporach
ok concept is understood.
Gurpreet singh
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is difference between data abstraction and encapsulation?
how to get the oracle certification? send me the answer
What is for loop and its syntax?
Why do we need oop?
What is difference between class and object with example?
Can static class have constructor?
write a C++ program for booking using constructor and destructor.
What are the features of oop?
hi all..i want to know oops concepts clearly can any1 explain??
What are the benefits of oop?
Plese get me a perfect C++ program for railway/airway reservation with all details.
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What is destructor in oop?
What is destructor oops?
What are the benefits of interface?