Domanda di colloquio di Infosys

Difference between extending Thread and implementing Runnable?

Risposta di colloquio

Anonimo

2 gen 2026

Extending Thread prevents you from extending any other class. Implementing Runnable is preferred because Java supports multiple inheritance through interfaces.