Top 13 Multithreading Questions Asked In Interview With Explanation and PDF | Most Important

  Рет қаралды 43,350

Genie Ashwani

Genie Ashwani

Күн бұрын

Пікірлер: 43
@iamabhik
@iamabhik 2 жыл бұрын
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
@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.
@rajaniupadhyay9960
@rajaniupadhyay9960 3 жыл бұрын
I got most of these question in my interview today :) Thanks. for making such videos :)
@aamirsiddique3551
@aamirsiddique3551 2 жыл бұрын
Ma'am right now r u working somewhere in Java technology
@AbhishekSingh-p5y
@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
@mayanksharma1491 Жыл бұрын
sleep vs wait in sleep thread holds the lock while in wait thread releases the lock and waits
@basavaraj2065
@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
@gaurav5668 Жыл бұрын
exactly my question !!
@AnkurSrivastavaAnkur
@AnkurSrivastavaAnkur 10 ай бұрын
You use condition variable not join
@arnabroy2995
@arnabroy2995 2 жыл бұрын
Thank you for making this video. ❤️
@GenieAshwani
@GenieAshwani 2 жыл бұрын
Any time!
@swaroop40
@swaroop40 Жыл бұрын
Bhai thoda Microphone ka quality acha hota to samaz aata
@akgarg0472
@akgarg0472 3 жыл бұрын
Thank you sir for this video🙏🤩❤️
@GenieAshwani
@GenieAshwani 3 жыл бұрын
Keep watching
@venkateshr3205
@venkateshr3205 3 жыл бұрын
Sir make a video in Specialization & generalization on java
@GenieAshwani
@GenieAshwani 3 жыл бұрын
Sure Venkatesh
@venkateshr3205
@venkateshr3205 3 жыл бұрын
@@GenieAshwani thank you sir .
@venugopalreddy6618
@venugopalreddy6618 3 жыл бұрын
Please make a video on SOLID principles , explaining with the code . Much needed concept for LLD interviews.
@GenieAshwani
@GenieAshwani 3 жыл бұрын
Noted
@scoobydooby4672
@scoobydooby4672 Жыл бұрын
How do you do last question? Not sure how modulus works to solve it
@HimanshuSingh-ti6qw
@HimanshuSingh-ti6qw Жыл бұрын
15:02 you should have code this solutions
@sharuk3545
@sharuk3545 5 ай бұрын
sadly say that,but most of the answer is not correct.
@abhishekgowda362
@abhishekgowda362 2 ай бұрын
Please Explain fully in English
@NeverGiveUp_oo7
@NeverGiveUp_oo7 Жыл бұрын
not good explanation.
@meme_engineering4521
@meme_engineering4521 2 жыл бұрын
are C++ coders also supposed to know all these, for freshers
@GenieAshwani
@GenieAshwani 2 жыл бұрын
Yes
@marthachacon5713
@marthachacon5713 3 жыл бұрын
Please use just English
@GenieAshwani
@GenieAshwani 3 жыл бұрын
sure Martha
@ChrisCox-wv7oo
@ChrisCox-wv7oo 2 жыл бұрын
👍 agree
@SunnySingh-is2wm
@SunnySingh-is2wm 3 жыл бұрын
Difference between class lock object lock??
@lakshyak
@lakshyak 2 жыл бұрын
nahi aata ise :D
@ruhinapatel6530
@ruhinapatel6530 2 жыл бұрын
can u give solution for question 13
@tineshsakthir9874
@tineshsakthir9874 10 ай бұрын
Bro English content needed
@venugopalreddy6618
@venugopalreddy6618 3 жыл бұрын
Hello Sir, Can you please suggest a good resource to learn multi threading?
@GenieAshwani
@GenieAshwani 3 жыл бұрын
take any book and learn from there
@vinayfartyal3666
@vinayfartyal3666 Жыл бұрын
kzbin.info/www/bejne/fqrWk2qejdVreJI
@siddheshgawas4773
@siddheshgawas4773 Жыл бұрын
no one answer is proper
@ronyuniverse
@ronyuniverse 6 ай бұрын
need improvement in explanation bud.
@RachnaMaheriya
@RachnaMaheriya 6 ай бұрын
very poor explaination.
@yididiyagebredingel3768
@yididiyagebredingel3768 2 жыл бұрын
Dude don't use English title if you are not going to use English! Annoying!
@flyiing_fish
@flyiing_fish Жыл бұрын
Chup
Java Multithreading Interview Questions
24:56
in28minutes
Рет қаралды 328 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
DSA with Java The FASTEST Way to Get Ahead in 2024
10:23
Genie Ashwani
Рет қаралды 17 М.
STOP Wasting Time with the Wrong Study Plan | Genie Ashwani
10:32
Genie Ashwani
Рет қаралды 6 М.
Java Interview Q&A on Multi-Threading
34:16
Siva Reddy
Рет қаралды 83 М.