which one the better thread emplemented thread or extended ?
Answers were Sorted based on User's Feedback
Answer / ravikiran
implementing runnable interface is a bettr practice
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / anand
its better to use runnable
interface....
using this interface
multithreading is became
possible in java
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / arun
thread implements is the better one no need of creating a
thread object(thread t =new thread()),we just write t.run()
| Is This Answer Correct ? | 0 Yes | 3 No |
Can this keyword be used to refer static members?
If two threads have same priority which thread will be executed first ?
Diff between Comparator and Comparable?
What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?
Can you declare a static variable in a method?
what is Abstract DataType?
What technique can be employed to compare two strings?
Can you call a constructor within a constructor?
What is empty list in java?
How are variables stored?
Where to store local variables?
What do you mean by local variable and instance variable?