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 jndi datasource in java?

649


Is jdk a compiler?

627


How does java handle integer overflows and underflows?

727


In which language eclipse is developed?

642


explain how java se 8 data and time api solves issues of old java date api?

729


Explain working of java virtual machine (jvm)?

699


Is java singleton thread safe?

645


What is a jpa repository?

656


What if I write static public void instead of public static void?

639


What is flatmap in rxjs?

637


Explain the reason for each keyword of public static void main(string args[])?

686


What are the rules regarding quotation marks?

646


What's the difference between authentication and authorization? : java security

708


Why java is better than node.js?

661


What do you mean by exception handling?

656