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 |
Why java uses the concept of the string literal?
I don’t want my class to be inherited by any other class. What should I do?
What is the purpose of default constructor?
How many bits is a char?
What is thread priority?
what do you understand by synchronization? : Java thread
Explain how to force the garbage collection in java.
How many digits can a float hold?
What modifiers can be used with a local inner class?
how we can create packages in java?
Can you explain the final method modifier?
public class Test { public static void main(String ar[]) { Integer a = 10; Integer b =10; Integer c = 145; Integer d = 145; System.out.println(a==b); System.out.println(c==d); } }