Difference Between Thread and Runnable are:
Thread: Thread is a class. It is used to create a thread Sub-class. It has multiple methods including start() and run(). Each thread creates a unique object and gets associated with it. More memory required. Multiple Inheritance is not allowed in java hence after a class extends Thread class, it can not extend any other class.
Runnable: Runnable is a interface which is used to create a thread .It has only abstract method run(). Multiple threads share the same objects. Less memory required. If a class is implementing the runnable interface then your class can extend another class.
#javatutorial #javaforbeginners #javamalayalam
Nesta página do site você pode assistir ao vídeo on-line Difference Between Thread and Runnable in Java Explained in Malayalam With Examples duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário IT MALAYALAM CLASSROOM 05 Setembro 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 101 vezes e gostou 3 espectadores. Boa visualização!