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
En esta página del sitio puede ver el video en línea Difference Between Thread and Runnable in Java Explained in Malayalam With Examples de Duración hora minuto segunda en buena calidad , que subió el usuario IT MALAYALAM CLASSROOM 05 septiembre 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 101 veces y le gustó 3 a los espectadores. Disfruta viendo!