how to create thread in java?
Answer Posted / vamsikrishna
we can do it in two ways.
one is by extending thread class and other is by
implementing Runnable interface.
here the later one is good because when we are going for
mutiple inheritance only interface helps us
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is the renewal class?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What is the diamond problem in inheritance?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What is the difference between a constructor and a destructor?
write a programe to calculate the simple intrest and compund intrest using by function overlading
What is abstraction with example?
What does enum stand for?
What causes polymorphism?
What polymorphism means?
Why oops is important?
Explain virtual inheritance?
What is polymorphism give a real life example?
Is oop better than procedural?
What is the main feature of oop?