1.

How Will You Achieve Multi-threading In Java?

Answer»

Multithreading in Java can be achieved in TWO WAYS :-

  • By defining a NEW CLASS which implements the runnable interface. An object of that class is then passed to constructor method of Thread.
  • By defining a new class that EXTENDS the thread class.

Multithreading in Java can be achieved in two ways :-



Discussion

No Comment Found