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 |
How do singleton patterns work?
What causes memory leaks in java?
Why java uses the concept of the string literal?
Which is better stringbuilder or stringbuffer?
What does @param args mean in java?
Implement a stack with push (), pop() and min() in O(1) time.
What are the two ways in which thread can be created?
Explain features of interfaces in java?
Name few java util classes introduced with java 8 ?
What is the use of pattern in java?
Is java written in c?
What is Collection interface?