Difference between Thread vs Runnable interface in Java
Thread vs Runnable in Java is always been a confusing decision for beginners in java. Thread in Java seems easy in comparison to Runnable because you just deal with one class java.lang.Thread while in case of using Runnable to implement Thread you need to deal with both Thread and Runnable two classes. though the decision of using Runnable or Thread should be taken considering differences between Runnable and Thread and the pros and cons of both approaches.
تعليقات
إرسال تعليق