how many ways to create Thread and which one is good?
runnable interface ot Thread class?
Answer Posted / guest
Two ways to create threads
1)by creating thread class
class classname extends Thread
{
}
2)By converting class to thread ie using Runnable interface
| Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
What is the difference between static and non-static variables in java programming?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
What is off heap memory?
Why does java not allow multiple public classes in a java file ?
How do you escape sequences in java?
What is the use of string and stringbuffer?
How do you join strings in java?
why are there separate wait and sleep methods? : Java thread
What do you mean by thread safe?
Can classes declared using the abstract keyword cab be instantiated?
What are the differences between throw and throws?
Which collections are thread safe in java?
What is boolean false?
Difference between method overloading and method overriding in java ?
Mention some interfaces implemented by linked list in java.