What are the two ways of implementing multi-threading in java?
Multi threaded applications can be developed in Java by using any of the following two methodologies:
1. By using Java.Lang.Runnable Interface. Classes implement this interface to enable multi threading. There is a Run() method in this interface which is implemented.
2. By writing a class that extend Java.Lang.Thread class.
| Is This Answer Correct ? | 0 Yes | 0 No |
If circular link of two objects, then will it be garbage collected ?
List some important features of java 10 release?
what is java
What are passing parameters?
What are the standards to place package statement within a source code file?
what is difference between Interface and abstract class
Which are different kinds of source code?
Why char array is preferred over string for storing password?
How can we achieve thread safety in java?
What is the Concept of Encapsulation in OOPS
What is hash code collision?
in a constructor what happen if u call super and this in the same class? i know that it is not possible to call both in the same one? if we call what will happen?