I hereby proclaim that this is the best tutorial for Multithreading on RUclips. No technical jargon, no fancy examples, short and simple, straight to the point.
Only becoz you... I have learned something sir...... Tq so much sir... Best teacher sir you are.. And you are teaching so many student sir.... Great man sir
Hello Sir, Your lectures are good,easily understandable. These are helping me to learn oops concepts in this Quarantine time. At free of cost I'm learning these. This is the best tutorial on online.Thank you soo much sir!
Sir in the program , single class - derived class Thread class - parent class ST class- main class What about the parent class, you have mentioned nothing about it
Hi Runnable interface defines only one abstract method run( ) to implement thread. So will override only run( ) method. Hope your doubt has been clarified.
Hello sir, Your explanation is awesome. But I have a doubt here, why you are importing util package here. I Hope you are going to reply to my comment sir. Thank you sir.
very well explained sir but in the the for loop you have given 0 to 5 right, so it supposed to print 01 2 3 4 so why it is printing 5? then you should give 0 to 6
When we call start(), a new thread is created and code inside run() method is executed in the new thread but whereas if we call run() directly, no new thread is created and the code inside run() will execute on current thread.
@@sundeepsaradhi is there a preference? I'm just confused on why youd implement runnable. Also is there some magic that happens behind the scenes? Thread constructor expects Runnable type. Is that it?
hi yes while using thread class we can extend only one class and if you need to extends more than one class it will not possible so in such cases we can use runnable interface which can be implemented multiple inheritance. Hope your doubt has been clarified.
interface concept is only method declaration.definition part to another class said in previous section. but you are implement in run() method declaration with definition??
Here Runnable is the interface that contains only abstract methods(declaration). Single implements Runnable and overrides its run method which it's the purpose of using inheritance.
I hereby proclaim that this is the best tutorial for Multithreading on RUclips. No technical jargon, no fancy examples, short and simple, straight to the point.
your explanation is excellent. very simple approach which makes anyone can easily understand. Thanks your service to learners
Only becoz you... I have learned something sir...... Tq so much sir... Best teacher sir you are.. And you are teaching so many student sir.... Great man sir
I am very proud of you for listening a great lecture ,sir well done ✅ .Thank you for this valuable lecture.
Now I understand the whole path scenarios about thread class implementation and interface. Thank you so much.
Hello Sir,
Your lectures are good,easily understandable. These are helping me to learn oops concepts in this Quarantine time. At free of cost I'm learning these. This is the best tutorial on online.Thank you soo much sir!
amazing sir i understand everything u have teached ,better than all ather u tube videos
Hi
Thank you for your support towards our channel share our channel with your friends and keep following our channel.
very helpfull sir after seeing your videos got idea in theoritical and when I practice I learned praticle knowledge Keep posting sir.....
NICE SUPER EXCELLENT MOTIVATED
Thanks sir...you are doing a great job..
Good explanation
Abstract methods we declare only declaration but not definition .
In this video in interface concept we use declaration with definition.why?
hi
in this program we are implementing the runnable interface and we are writing the definition of run().
Hope your doubt has been clarified.
best video on RUclips
Can we say that , we are invoking the parameterized constructor of the thread class, by passing the argument ?
Sir we can't see the program bcz of disturbing in voice text in the display plz avoid this problem. U r classes are excellent sir🙏🙏🙏👌
Sir in the program ,
single class - derived class
Thread class - parent class
ST class- main class
What about the parent class, you have mentioned nothing about it
Sir,what is the use of run and why we should use the run from the thread what is use and why?
Sir.. In interface why you creating two objects in main method
why are we creating objects for both concrete class as well as thread class while implementing runnable interface?
If a class implements a interface we may need to override all methods of interface ? Here you have overridden only run () . How ?
Hi
Runnable interface defines only one abstract method run( ) to implement thread.
So will override only run( ) method.
Hope your doubt has been clarified.
@@sundeepsaradhi thankyou
Sir first thanks you for your videos, did you upload video setter getter in Java
Hello sir, Your explanation is awesome. But I have a doubt here, why you are importing util package here. I Hope you are going to reply to my comment sir.
Thank you sir.
Thank you ❤️
Sir please make videos on genrics,collections,stream api sir
Sir in java for interface we can't create an object but we can consider it as an reference.but u r created object for thread interface how?(10.38)...
Sir please deals python course also. Pls
very well explained sir but in the the for loop you have given 0 to 5 right, so it supposed to print 01 2 3 4 so why it is printing 5? then you should give 0 to 6
In for loop,
For(int i=0;i
Sir why we take runnable only we can't take thread in interface....
only one object is enough to acess in single class and runnable interface. y u assigned t=s?
Thanks for upload classes sir but how extend the classs without thread class
😘😘
Why do we need to call the s.start() while we can directly call s.Run()
When we call start(), a new thread is created and code inside run() method is executed in the new thread but whereas if we call run() directly, no new thread is created and the code inside run() will execute on current thread.
why @runnable i/f, ur passing the object,? how exactlt is at the i/f anf thread class
Is thread class is already defined before
Implimenatation of thread
😍😍
thannk you
Sir can u create four threads using runnable interface...
If any method name is start () ?
Sir please explain what is Runnable interface
When would you use thread class and when would you use runnable interface ?
hi Robert
we can go with any one during implementation.
@@sundeepsaradhi is there a preference? I'm just confused on why youd implement runnable. Also is there some magic that happens behind the scenes? Thread constructor expects Runnable type. Is that it?
hi
yes while using thread class we can extend only one class and if you need to extends more than one class it will not possible so in such cases we can use runnable interface which can be implemented multiple inheritance.
Hope your doubt has been clarified.
why we pass a object of class SIngle in Thread class
Good morning sir
interface concept is only method declaration.definition part to another class said in previous section. but you are implement in run() method declaration with definition??
Here Runnable is the interface that contains only abstract methods(declaration). Single implements Runnable and overrides its run method which it's the purpose of using inheritance.
hi