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

What is the RMI and Socket?

819


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

819


How would you detect a keypress in a jcombobox?

884


Explain about local interfaces.

802


How is a java object message delivered to a non-java client?

783


What is the map interface?

844


Why a client should be multithreading? Explain.

814


What is a tasks priority and how is it used in scheduling?

779


What is a modular application? What does module-relative mean?

758


how i secure my site with the https protocol.what are the steps?

1972


In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?

1825


What is Stream Tokenizer?

1965


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!

1602


Name the eight primitive java types.

823


Which class is the immediate superclass of the menucomponent class?

913