Answer Posted / rajshekhar
There are 2 ways to create a thread
1.By extending thread class
2.and the second one is by implementing runnable
interface.among the two the second one is more common and
better to use.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Which component handles cluster communication in jboss?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
what are RemoteObjects?
What are the design considerations while making a choice between using interface and abstract class?
what is a non-repeatable read?
How are the elements of a cardlayout organized?
Explain RMI Architecture?
What is the difference between the session.update() method and the session.lock() method?
What value does read() return when it has reached the end of a file?
Is it possible to stop the execution of a method before completion in a sessionbean?
What is the difference between long.class and long.type?
Why is string immutable in java?
What happens when a thread cannot acquire a lock on an object?
What are the benefits of detached objects?
Where we can write Rmi registry in the code, without having to write it at the command prompt?