how to create thread in java?
Answer Posted / vijay tandel
Thread can be created by
1. Extending Thread Class
2. implementing Runnable interface
The second approach is better as if you want to use multiple
inheritance, interface is better option.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
Why we use classes in oop?
What is an example of genetic polymorphism?
What are the 4 pillars of oop?
What is oops in simple words?
What is abstraction encapsulation?
is there any choice in opting subjects like 4 out of 7
What is polymorphism in oops?
Where You Can Use Interface in your Project
write string class as your own class in java without using any built-in function
What is polymorphism and types?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What causes polymorphism? What is oops with example? Write a program to reverse a string using recursive function?