what is use of threads how many ways to create thread

Answer Posted / subash chandra bose l

there are many uses of threads and the main use is to
execute several process at once.

there are two ways of creating a thread and

1. extending a Thread class
2. implementing Runnable interface

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is threaded programming and when is it used? : Java thread

618


Why are there no global variables in java?

673


Difference between string, stringbuffer and stringbuilder?

674


Explain about procedural programming language or structured programming language and its features?

625


How do you ensure that n threads can access n resources without deadlock?

921






How do you reverse a word in java?

620


How can you read an integer value from the keyword when the application is runtime in java? example?

710


What is split return?

578


Why put method is idempotent?

553


What is the difference between int and integer in java?

630


Why heap memory is called heap?

668


Explain the importance of throwable class and its methods?

654


What is string [] java?

625


What is dynamic binding(late binding)?

695


Explain the features of java?

686