Java Multithreading Interview Questions

  Рет қаралды 322,004

in28minutes - Get Cloud Certified

in28minutes - Get Cloud Certified

Күн бұрын

Java Multithreading Interview Questions and Answers ► SUBSCRIBE & LIKE!!
► LEARN "Big Picture" of FULL-STACK, CLOUD, AWS, MICROSERVICES with DOCKER and KUBERNETES in **30 MINUTES** - links.in28minutes.com/in28min...
LEARN "Big Picture" of FULL-STACK, CLOUD, AWS, MICROSERVICES with DOCKER and KUBERNETES in **30 MINUTES** - • 01 - Microservices, Do...
Follow Ranga on LinkedIn - / rangakaranam_thank-you...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Our Top 10 Courses
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30+ Courses. 500,000+ Learners. Amazing Reviews.
► 1. Master DEVOPS with Docker, Kubernetes and Azure DevOps - links.in28minutes.com/DevOps-SBT
► 2. Become FULL STACK DEVELOPER with SPRING BOOT and REACT - links.in28minutes.com/in28min...
► 3. Master MICROSERVICES with Spring Boot and Spring Cloud - links.in28minutes.com/in28min...
► 4. Become AWS CERTIFIED Solution Architect - links.in28minutes.com/aws-arc...
► 5. Learn SPRING in 100 Steps - links.in28minutes.com/in28min...
► 6. JAVA PROGRAMMING for Complete Beginners in 250 Steps - links.in28minutes.com/in28min...
► 7. Go FULL STACK DEVELOPER with Spring Boot and Angular - links.in28minutes.com/in28min...
► 8. Master Java Unit Testing with Spring Boot & Mockito - links.in28minutes.com/in28min...
► 9. Spring INTERVIEW GUIDE - links.in28minutes.com/in28min...
► 10. Java INTERVIEW GUIDE - links.in28minutes.com/in28min...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FREE Courses For You
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
► 01. Learn Full Stack, AWS, Cloud, and Microservices - • Learning Paths - Java ...
► 02. Learn Spring and Spring Boot in 5 DAYS - links.in28minutes.com/5-day-s...
► 03. AWS Certified Solutions Architect Associate - links.in28minutes.com/sbt-tea...
► 04. Getting Started with DevOps and Cloud - links.in28minutes.com/5-day-s...
► 05. Learn Docker in 10 Steps - links.in28minutes.com/in28min...
► 06. Learn Kubernetes in 10 Steps - links.in28minutes.com/in28min...
► 07. Learn AWS in 10 Steps - links.in28minutes.com/in28min...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Other Recommendations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
► MOST WATCHED VIDEOS - • Our Most Watched Tutor...
► 25+ PLAYLISTS - kzbin.info...

Пікірлер: 55
@sivaramasubramanian4245
@sivaramasubramanian4245 3 жыл бұрын
Wow..Amazing Tutorial..Clear, covers a lot yet concise enough!
@rkgoli
@rkgoli 6 жыл бұрын
good job man. nice brief summarisation and good articulation than lot of other multithreading videos, which are either too verbose, or too slow, or too digressing with not-that-straight examples, or not articulated well enough. Thanks a lot!! for the free service.
@prasadrayudu2001
@prasadrayudu2001 5 жыл бұрын
Really Helpful video Sir,Thank You :)
@pankajdubey1310
@pankajdubey1310 6 жыл бұрын
The thread stack also contains all local variables for each method being executed (all methods on the call stack). A thread can only access it's own thread stack. Local variables created by a thread are invisible to all other threads than the thread who created it. Even if two threads are executing the exact same code, the two threads will still create the local variables of that code in each their own thread stack. Thus, each thread has its own version of each local variable. All local variables of primitive types (boolean, byte, short, char, int, long,float, double) are fully stored on the thread stack and are thus not visible to other threads. One thread may pass a copy of a pritimive variable to another thread, but it cannot share the primitive local variable itself.
@AlguienEnSuCasa
@AlguienEnSuCasa 3 жыл бұрын
Because objects are reference pointers to memory structures, potentially shared, while primitives are "values"
@meetshah5287
@meetshah5287 2 жыл бұрын
Great Content, Can say that this video cleared my all doubts and all topics are clear now.
@aquasaiyan7877
@aquasaiyan7877 4 жыл бұрын
great video. if i'm not mistaken, Future object would be derived from callable instead of runnable
@jiansenxmu
@jiansenxmu 5 жыл бұрын
Thanks a lot!
@Govindyatnalkar
@Govindyatnalkar 4 жыл бұрын
This is gold!!!
@phoenix3525
@phoenix3525 5 жыл бұрын
Well done.
@arvindraju1990
@arvindraju1990 4 жыл бұрын
Where we can find your generics exercises code which you mentioned in Video? on GIT HUB?
@akhilkapoor5127
@akhilkapoor5127 4 жыл бұрын
Amazing example
@shantipriya3088
@shantipriya3088 2 жыл бұрын
The canteen has two windows for rice. (window 1 and window 2), each window has a master to provide meal service, and the window service time is as follows. Master a of window 1 is preferred to start the service. After cooking for three students, open window 2 and master B of window 2 starts the service. The total number of students is 30. Please describe the code implementation with multithreading mechanism. who can solve it?
@annukumari-vs7se
@annukumari-vs7se 3 жыл бұрын
Asynchronous execution mechanism is defined wrong in the yellow highlighted box as it’s not capable of running in background but asynchronous means not waiting for the other thread to complete and execute simultaneously.
@MathLab4u
@MathLab4u 3 жыл бұрын
I am 100% impressed
@sekhar2379
@sekhar2379 3 жыл бұрын
great video
@alokyadav9684
@alokyadav9684 6 жыл бұрын
Tysm
@batoolazzam3985
@batoolazzam3985 2 ай бұрын
🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
@sreeram543
@sreeram543 3 жыл бұрын
Excellent
@iDeveloper92
@iDeveloper92 Жыл бұрын
Well done!
@analogylibrary
@analogylibrary 6 жыл бұрын
To those who are looking for source code, this is the link- github.com/in28minutes/JavaInterviewQuestionsAndAnswers
@pankajdubey1310
@pankajdubey1310 6 жыл бұрын
how two thread can override the method argument value,every thread have own stack and method argument and local variable is maintained in the stack, can you please provide example and demonstrate, two thread can overide the local variable and share in between
@FeelGoodChronicles
@FeelGoodChronicles Жыл бұрын
Thanks sir!!!!!!!!!!!!!!!!
@pulpopulpo5383
@pulpopulpo5383 6 жыл бұрын
Where can we donwload a complete pdf or ppt file with all the explanations of each question?
@jackcoolguy123
@jackcoolguy123 2 жыл бұрын
I think your last example explanation is not correct. Thread.wait() is not used when you want to wait the completion of that thread but you use it on any object (not only thread) whose lock thread needs to give up so that other thread can lock it and then again acquire it back to complete the rest of the part. If you want to continue execution of thread after completion of other thread, then you need to use join() on that thread
@dhrub6
@dhrub6 7 жыл бұрын
Very well explained in detail. Where can I get the source code?
@johncanessa2250
@johncanessa2250 7 жыл бұрын
I found it at: github.com/in28minutes/JavaInterviewQuestionsAndAnswers
@walturenamdev209
@walturenamdev209 3 жыл бұрын
@@johncanessa2250 this link dosent work for me 😔
@PraveenKumar-ew2xo
@PraveenKumar-ew2xo 7 жыл бұрын
Can u provide this PDF link ?
@vikrantdheer8817
@vikrantdheer8817 6 жыл бұрын
Where we can find your multithreading & generics exercises code ?
@SS-or2om
@SS-or2om 2 жыл бұрын
Where we can find these documents? Please share the link.
@hit_nishant
@hit_nishant 5 жыл бұрын
What if we will commented out the notify() from the Calculator class ?
@achyuthsai6339
@achyuthsai6339 3 жыл бұрын
then main method continues to wait infinitly eventhough another thread is completed and thread.sum will never be executed
@anirbanroy1524
@anirbanroy1524 5 жыл бұрын
Excellent video
@moksudahmed3040
@moksudahmed3040 7 жыл бұрын
Why the Thread that will provide us the bowling statistics is called "battingThread2" ? Shouldn't we call it "bowlingThread"?
@PramendraRaghuwanshi
@PramendraRaghuwanshi 7 жыл бұрын
It's just naming convention, you can give whatever you want. BTW best practice we should have "bowlingThread" as you suggested.
@csabadanyiko6096
@csabadanyiko6096 2 жыл бұрын
"Threads allow java code to run in parallel". That is not true. Parallelism is not guaranteed in java multithreading. Only concurrency.
@umeshnaik844
@umeshnaik844 6 жыл бұрын
One big question why wait and notify methods in object class not in thread class?
@LovyGupta007
@LovyGupta007 6 жыл бұрын
communication will be a big problem in that case. For ex while notifying you need to know all the threads who are waiting and call method on each of them. Object helps in that sort of communication.
@TheRouteShow
@TheRouteShow 2 жыл бұрын
wow
@neerajarora100
@neerajarora100 6 жыл бұрын
The last example the wait and notify are called by locking on different object.. not a good practice as you may miss a signal !! Also in the last example you could have simply used join. Not an amazing example to show wait and notify ...
@soumyababu7692
@soumyababu7692 5 жыл бұрын
source code of the eg?
@analogylibrary
@analogylibrary 6 жыл бұрын
From where can I get the full document which you are going through in the video?
@Lucasevsky85
@Lucasevsky85 6 жыл бұрын
He does courses on Udemy , I got a few for discounted price and they are very good :)
@murtuzalaxmidhar9792
@murtuzalaxmidhar9792 5 жыл бұрын
Very short explanations with no significant terminologies used. Its okay to keep it brief but should highlight important aspects else it not much of a use. Felt same with Design Pattern videos.
@jaydipbarvaliya
@jaydipbarvaliya 4 жыл бұрын
People starting complaining about video..... they don't know that Video title is Interview questions and ans.
@LimeObeans
@LimeObeans 5 жыл бұрын
Hi I was 70k th sub can I win prize? I like your videos thanks!
@curious_sapien
@curious_sapien 5 жыл бұрын
What prize you wanna win?
@krishnashauzshenikala9240
@krishnashauzshenikala9240 4 жыл бұрын
Voice not good sir.use indian English and in udemy plese provide along with your bord explanation video.not always eclipse focus on camera not good.and plese tell clarify sir.clarfication not reached
@clvaclva
@clvaclva 4 жыл бұрын
moving screen up and down is very annoying. need to focus on presentation more
@shubhamthakur3575
@shubhamthakur3575 4 жыл бұрын
@21:45 you have called wait method as Thread.wait(); which is incorrect wait method belongs to Object class not to Thread class
@DevendraKumar-hc7qm
@DevendraKumar-hc7qm 4 жыл бұрын
Exaplaination is not good
@arvindraju1990
@arvindraju1990 4 жыл бұрын
Where we can find your generics exercises code which you mentioned in Video? on GIT HUB?
@rionacko748
@rionacko748 3 жыл бұрын
yeah
Java Exception Handling Interview Questions and Answers
32:21
in28minutes - Get Cloud Certified
Рет қаралды 91 М.
Summer shower by Secret Vlog
00:17
Secret Vlog
Рет қаралды 8 МЛН
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 65 МЛН
Does size matter? BEACH EDITION
00:32
Mini Katana
Рет қаралды 20 МЛН
Multithreading in Java Explained in 10 Minutes
10:01
Coding with John
Рет қаралды 898 М.
Java Collections Interview Questions and Answers -  New Version
43:51
in28minutes - Get Cloud Certified
Рет қаралды 408 М.
Java Interview Q&A on Multi-Threading
34:16
Siva Reddy
Рет қаралды 82 М.
Top 25 Microservice Interview Questions Answered - Java Brains
39:54
Multi-Threading using Java🔥🔥 | Java Multithreading in one video |  HINDI
1:21:10
Learn Code With Durgesh
Рет қаралды 258 М.
EPAM 3 Years Interview Experience | Java Spring Boot
22:36
GenZ Career
Рет қаралды 94 М.
Summer shower by Secret Vlog
00:17
Secret Vlog
Рет қаралды 8 МЛН