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
How to call a non virtual function in the derived class by using base class pointer
What is the diamond problem in inheritance?
How do you achieve polymorphism?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What are main features of oop?
What polymorphism means?
What is inheritance write a program to show use of inheritance?
Can we create object of interface?
What is oops and why we use oops?
Write a program to reverse a string using recursive function?
Explain the concepts involved in Object Oriented programming.
Why is oop useful?
What is cohesion in oop?
What is inheritance in oop?
What is the point of oop?