How many ways can a thread be used?

Answer Posted / harsha

The thread implemented by using runnable interface is more
advantageous. The other way of using a thread is by
inheriting from the Thread class.

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is infobus easy to use?

590


What is the highest-level event class of the event-delegation model?

562


What is metaspace?

538


int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!

1355


What restrictions are placed on the values of each case of a switch statement?

526






How substring() method of string class create memory leaks?

540


What is the form of storage space in java?

1727


What are the oops concept?

569


When a thread blocks on i/o, what state does it enter?

568


what is Activation Instantinator?

1898


Is a class a subclass of itself?

582


What are the diff types of exception?

545


What’s jboss jbpm?

570


Which class is the immediate superclass of the menucomponent class?

611


What is jboss?

564