A little bit descriptive answer for Q5 is that in an application where one might need to extend super classes, if we use "extends Thread" then there is no option to extend any more classes. Better to use "implements Runnable" which will allow you to extend anything else :)
@fitMindBody Жыл бұрын
The reason to use implement Runnable interface than extending Thread class is because Java doesn’t support multiple inheritance, once you extend Thread class you cannot extend any other class but with implementing runnable you can extend other class as well.
@rajaniupadhyay99603 жыл бұрын
I got most of these question in my interview today :) Thanks. for making such videos :)
@aamirsiddique35512 жыл бұрын
Ma'am right now r u working somewhere in Java technology
@AbhishekSingh-p5y Жыл бұрын
It is preferred to implement a Runnable interface instead of extending Thread class. As implementing Runnable makes your code loosely coupled as the code of thread is different from the class that assign job to the thread. It requires less memory and also allows a class to inherit any other class.
@mayanksharma1491 Жыл бұрын
sleep vs wait in sleep thread holds the lock while in wait thread releases the lock and waits
@basavaraj2065 Жыл бұрын
Q1 : How JOIN can be used to make T2 start after T1 ? join is used to wait for another thread to complete when its task is completed, which means T1 T2 T3 might be in running state at the same time. May be we can use isAlive method to check if T1 is completed and then start T2
@gaurav5668 Жыл бұрын
exactly my question !!
@AnkurSrivastavaAnkur10 ай бұрын
You use condition variable not join
@arnabroy29952 жыл бұрын
Thank you for making this video. ❤️
@GenieAshwani2 жыл бұрын
Any time!
@swaroop40 Жыл бұрын
Bhai thoda Microphone ka quality acha hota to samaz aata
@akgarg04723 жыл бұрын
Thank you sir for this video🙏🤩❤️
@GenieAshwani3 жыл бұрын
Keep watching
@venkateshr32053 жыл бұрын
Sir make a video in Specialization & generalization on java
@GenieAshwani3 жыл бұрын
Sure Venkatesh
@venkateshr32053 жыл бұрын
@@GenieAshwani thank you sir .
@venugopalreddy66183 жыл бұрын
Please make a video on SOLID principles , explaining with the code . Much needed concept for LLD interviews.
@GenieAshwani3 жыл бұрын
Noted
@scoobydooby4672 Жыл бұрын
How do you do last question? Not sure how modulus works to solve it
@HimanshuSingh-ti6qw Жыл бұрын
15:02 you should have code this solutions
@sharuk35455 ай бұрын
sadly say that,but most of the answer is not correct.
@abhishekgowda3622 ай бұрын
Please Explain fully in English
@NeverGiveUp_oo7 Жыл бұрын
not good explanation.
@meme_engineering45212 жыл бұрын
are C++ coders also supposed to know all these, for freshers
@GenieAshwani2 жыл бұрын
Yes
@marthachacon57133 жыл бұрын
Please use just English
@GenieAshwani3 жыл бұрын
sure Martha
@ChrisCox-wv7oo2 жыл бұрын
👍 agree
@SunnySingh-is2wm3 жыл бұрын
Difference between class lock object lock??
@lakshyak2 жыл бұрын
nahi aata ise :D
@ruhinapatel65302 жыл бұрын
can u give solution for question 13
@tineshsakthir987410 ай бұрын
Bro English content needed
@venugopalreddy66183 жыл бұрын
Hello Sir, Can you please suggest a good resource to learn multi threading?
@GenieAshwani3 жыл бұрын
take any book and learn from there
@vinayfartyal3666 Жыл бұрын
kzbin.info/www/bejne/fqrWk2qejdVreJI
@siddheshgawas4773 Жыл бұрын
no one answer is proper
@ronyuniverse6 ай бұрын
need improvement in explanation bud.
@RachnaMaheriya6 ай бұрын
very poor explaination.
@yididiyagebredingel37682 жыл бұрын
Dude don't use English title if you are not going to use English! Annoying!