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 a class loader? What are the different class loaders used by jvm?

579


What’s jboss jbpm?

574


What is the purpose of the notify() method?

593


the same information whether it will connect to the database or it will be used previous information?

568


Write a singleton program?

564






Explain what is synchronization?

566


What state does a thread enter when it terminates its processing?

600


Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

577


Is a class a subclass of itself?

586


What is the difference between the font and fontmetrics classes?

558


What modifiers may be used with an interface declaration?

553


Which are the different segments of memory?

591


Will the general public have access to the infobus apis?

526


Explain about thread synchronization inside a monitor?

1993


what are getters and setters in Java with examples?

1282