which one the better thread emplemented thread or extended ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain constructors and types of constructors in java.

642


What is a protected method?

596


Are floats faster than doubles?

563


Which sorting algorithm is best in java?

535


What sorting algorithm does javascript use?

526






Explain about features of local inner class?

601


What is the maximum size of byte array in java?

538


What is off heap memory?

546


What are JVM.JRE, J2EE, JNI?

689


What's a method in programming?

548


what is the constructor and how many types of constructors are used in java?

531


What is meant by class and object in java?

552


how can i use a nonsynchronized hashtable?

2100


What is default locale java?

535


What is a function in java?

568