while creating thread why we extend thread class
Answers were Sorted based on User's Feedback
Answer / jayaprasad
calling the Thread class methods like start().
Threads can be created in two ways
1) extends Thread class
2) implementing Runnable interface.
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / pamal janveja
To create User Defined thread, We requires features of thread
and java provide us Thread class.
We simply over right its run method and called this by start method which internally call to run method.
Similarly using other methods of Thread class , we can create,access and delete user defined thread.
Note:- Without Thread class or Runnable interface , We can not create User defined Thread.
| Is This Answer Correct ? | 6 Yes | 0 No |
Why do we use threads in java?
What is 16 bits called?
If there is no implementation of MARKER INTERFACE in java. Then how compiler come to know about specification.
Explain list interface?
What is better- service oriented or batch oriented solutions?
What are the core java topics?
where do you place after you did code in java
why the equals method can be override?when we override the equals method?
what is request processor?
What is OOP Language?
What is the difference between overriding and overloading in OOPS.
0 Answers Axtria, ITC Indian Tobacco Company,
How do you convert int to char in java?