how to create thread in java?
Answer Posted / teja
We r creating threads in java by extending d thread class
or by implementing runnable interface.
Syntax for creaton of thread is:
Thread var=new Thread(Runnableobject,"Stringname");
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is polymorphism what is it for and how is it used?
What is polymorphism programming?
Which type does string inherit from?
Which language is not a true object oriented programming language?
What is protected in oop?
What is encapsulation with example?
What is difference between pop and oop?
What is new keyword in oops?
What does enum stand for?
Why we use classes in oop?
what is the drawback of classical methods in oops?
What is the purpose of enum?
Can bst contain duplicates?
What is class encapsulation?
• What are the desirable attributes for memory managment?