how many ways to create Thread and which one is good?
runnable interface ot Thread class?

Answer Posted / balaji@cse@crr engg@eluru

types of creating thread
1)extend thread class
2)implement by runnable interface
=>2"nd method is good because by using interface we can
implement multiple inheritance

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by final value?

802


Is an integer an object?

716


Is java platform independent?

765


Can we execute a program without main() method?

759


Is java util regex pattern thread safe?

742


What is the difference between public, private, protected, and friend access?

788


What is unicode datatype?

718


What is array length?

722


Which class is the superclass of all classes?

830


What are the advantages of arraylist over arrays?

799


How do you sort a list in java?

797


What is a char in java?

747


What do you understand by java virtual machine?

926


What is a numeric literal?

750


What is a short in java?

702