How to implement Thread

Answer Posted / rakesh jain

there are tow method to implement an thread
1. by extending the thread class.
2. by using runnable interface.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java bean class?

565


Can an application have multiple classes having main method?

577


What is meant by rest api in java?

552


What is type inference? Is type inference available in older versions like java 7 and before 7 or it is available only in java se 8?

587


Why do we need framework in java?

524






Who created eclipse?

569


What is phantom memory?

620


What is the difference between ec2 and lambda?

540


Can we install jre without jdk?

583


How common are security breaches? : java security

543


What is cookie in java?

549


How do you count in java?

583


What is xml file in java?

574


What is the difference between map and flatmap in java?

554


What is native class in java?

579