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 are benefits of oop?
Why interface is used?
What is encapsulation selenium?
Why it is called runtime polymorphism?
What is cohesion in oop?
What is the real time example of encapsulation?
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 does enum stand for?
c++ program to swap the objects of two different classes
What are the types of abstraction?
Is data hiding and abstraction same?
What is polymorphism programming?
What are the 4 pillars of oop?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What is polymorphism explain its types?