 Good morning guys. Welcome to our channel. So today in this video we will be talking about DBS Bank interview questions That we are shared by one of our subscriber friend who has recently got an opportunity to have an interview DBS. So in this video we will be talking about Java interview questions multi-threading interview questions, springboard and spring interview questions And even on few questions on microservice and data switches So this video would be helpful for those people who are having an interview with DBS Bank or looking out for The videos or questions that are being asked at DBS Bank. So let us see the mail first So this was the mail from our subscriber friend Interview with DBS Bank, Hydro-Con-Engineer, the videos are really helpful in preparing for the interviews and I want to share my interview experience with DBS Bank where I have applied for Java developer for a 4.5 years experience I was Luckily I was selected and there have Offered me 18 lakhs per annum. I was having offer of 16.5 lakhs from other companies below the tech questions I have faced Manager wrong was very easy. So basically so here we can do things to concentrate that is year of experience was 4.5 And this is for a Java developer So basically the questions would be asked for Java developer and the offer salary was 16.5 lakhs per annum So let us get into the Questions so if you want to share your questions you can reach us at the email ID that is there in the description Coming to the first section of question. I have segregated into different sections of question. So the first three questions are explained about my Current project roles and responsibilities. So this is one of the mandatory Questions and why you are explaining your project architecture and if you are saying yourself as an experienced candidate So please be prepared or let go prepared on this type on project architecture Because if you fail to explain the project architecture in a proper way that will definitely Reduce your chances of selections like 90% will get rejected on this question itself Because if you are saying an experienced candidate and if you are not able to answer Like explain your project architecture in a proper way So that will definitely give a negative feedback. Then there was question Explain about a realist hash map and concurrent hash map internal working So this is again like one mattering Interview question we can say for experienced candidate like basically Hash map and concurrent hash map internal work, but here we can add a realist as well The next question is what is blocking Q right code to implement a blocking so basically blocking to the interface That support operation that wait for Q to become non-empty when Trimming and removing an element and wait for space to become available in Q when adding an element and these will not Accept null it will throw null pointer exception and these are thread safe and Interestingly our friend has shaped the reason for selection as well. I'll discuss that in the end So come into the next section of questions Here's these are from completely from multi-threading. So these are the questions that we're asked as part of multi-threading You have thread T1 T2 and T3 how will you ensure that thread T2 run after T1 and Thread T3 run after T2 it basically the same T1 should run first T2 second T3 third So we can use join method here and we can do that or There are different ways as them with the notify and wait we can do that Second question is you need to implement a high performance cache Which allows multiple readers, but the single writer to keep the integrity. How will you implement it? So This is a tricky question here. Basically, there should be multiple readers, but single writer You can go with concurrent hash map here If you are anything in your mind you can comment it in the comment section right now concurrent hash map is striking my mind So I would go with that. What is the race condition? How will you find and solve the race condition? So basically when two threads are running for To gain the access or that scenario is known as race condition and we have to find it and solve it So basically like to solve the race condition we can use synchronized blocks and methods Dear friends, well today I have some exciting news for you Relival has announced all their tests have been made free of cost in order to give candidates access to thousand-page jobs across the top companies You search for finding the right job ends now with the Relival Now you can register the Relival test in just four steps Sign up on Relival.com select the test of your choice like whatever you want to front end back end of business development Book a slot when you want to do the Relival test slots are limited So I suggest you to book it fast click the book test and confirm your slots for the test All rounds of the test will be completed in a single day and we'll Get your scores within a week once you qualify the Relival test based on the score You will get a create your amazing Relival profile which will then be shared by companies for further process The only thing you have to do is sit back and relax companies will reach out to you based on your profile The better your scores the more companies will reach out to you So what are you waiting for register for the Relival test today? And if you're someone who haven't heard about Relival here's a few benefits of participating in Relival test over fine 50 best companies including top startups and unique constructed upgrade is a pre urban company and many more are hiring through labor Thousand-page job position occurs the business development front-end development at back-end development with guaranteed minimum package of four Non-tech rules and six-flag per annum for tech rules people are getting packages of 50 likes per annum as well Completely online and can be taken from comfort of your home The best part is that you can take this test for free finish your test in a single day of your choice and get your Relival scores within a week Once you clear the test within with your qualifying which is 700 out of thousand marks You will be able to create an amazing candidate profile Then it will be show cast your skills and stand out of the crowd and something that stand out of the clock Cloud is always noticed. The candidates can take the test for after 30 days if they don't meet the qualifying criteria Also, the candidates will be rewarded with exciting goodies like MacBook iPhone and many more for the highest rank holders in the Relival test With Relival you are in a unique position to invite interest from companies instead of hunting for the opportunities on your own Once you have a great score You can sit back and relax the companies will reach out to you still unsure about taking the test Find the people like what you currently seeing on your screen who have already got into the dream jobs You can also follow the Relival Twitter page to know more about the achievers Coming back to the question so the next questions are how do you handle and handle unhandled exception in your thread? into thread This is how do you handle an unhandled exception in a thread? So this depends again like upon your architecture like in multi-threading environment. How do you want to handle the exception? What do you mean by inter thread communication and how it is that basically how threads communicate internally? So that is done through notify wait methods notify all Can you explain a real-time example where you have used abstraction in your application? So what I always feel is whenever you you prepare for who's concept always prepare who's concept of Taking the real-time examples from your applications like where exactly you have used Though here the question is about accept abstraction or it can be on encapsulation inheritance or polymorphism or anything but you always prepared with the real-time example that would definitely add an advantage Then the question is from Java 8. What is option? How it can be used? So basically optional cloud got introduced in Java 8. So to handle null pointers we can like option is very handy there Handling the null pointers What is the default method and when do we use it? So this is a tricky question again or defaults came in functional interfaces Now we can have a default and static methods The issue that is results is that we can have we can add a new method like default method and it won't Like in the subclasses we can directly use reuse the method We thought this during all the implementation of the class of that interface sorry difference between intermediate and terminal operations This is again from Java 8 features what is intermediate and terminal operations How to find duplicate elements in a given integers list in Java using string function? So we have already I think we have already shared this on our Channel how to find duplicate elements in a given integers list in Java Given a string find the first repeated character in it using string function. Yeah Okay Different scopes of spring beans and which scenario you will use what so basically the difference upon The requirements so there are different scopes singleton prototype request session And one is global so five and but that Uses that definitely depends upon the requirement We cannot say in which scenario we use what if you want one per container I'll go with singleton if you want for every request then go with request type if you want For session one being the moving session Next question is how have you configured db in spring boot in your current application? So these are few important I say like in every interview you will face this type of question the configuration part how you have faced db configuration Always better to prepare on how we have doing transaction management in your application So these are few mental equations that we will always face Come into the next section of question and if you are having subscribers, please do subscribe In spring boot, how can I load profile specific properties file? So there is a command of using the command we can load While learning the when boot stuffing application itself queries to fetch highest and end Highest value from employee table So we have to write query or this is one of the mandatory I feel we will look out of hundred interviews in 95 interviews We will see this query like find the highest and second highest or third highest like that Ask to write queries to demonstrate inner join and outer join This way the questions from db related difference between microservices and monolithic applications So as I haven't worked on microservices didn't ask for that So there you have to explain basically the differences between monolithic and microservices What advantages we are getting with microservices? What disadvantages we are getting with microservices? All the things needs to be explained It is not just the advantages that we extend When the disadvantages we need to extend It will really cost you to maintain microservices What type of review comments I get in code review Okay, this is one Depends on person to person Ask me to explain about my recent my Current ticket and what I have done to accomplish the given task So these are specific to a person There were few general questions on agile So if you are following agile Mostly 90% of the projects in it now are following agile So expect few general questions There is nothing in agile so general questions Look what are the different ceremonies What is the team size What is the velocity of your team How many days does this come last So these kind of questions can be expected So now I will reveal the reason for selection So reason for selection was this Mainly coding and multithreading helped me in tracking the interview So always if you are a developer Most of your selection depends upon your coding skills Here even in this interview It played a crucial role in coding and multithreading So if you are all preparing for a debuts bank So please brush up your coding and multithreading interview So multithreading interview questions That will definitely help you in tracking the interview That's it in this video So this is the complete mail that we have received You can wait for a moment and go through it completely So if you haven't subscribed Please do subscribe like Share and provide the feedback in the comment section And if you request to please do like That will definitely motivate the subscribers as well To share more videos And if you are on the channel for the first time If you are wondering like who are we and what we do So we are basically a bunch of software engineers Who are then interviewed and share our real-time interview Experiences through these videos Apart from that we also share our subscriber friends Interview experiences who mail us If you want to contribute You can reach us at the email id that is there in the description And if you are wondering what are the companies that are getting printed So this we have already shared You can visit our channel and get advantage of these videos So we are basically sharing more interview questions Related to Java and Java related technologies So that's it in this video and thank you for watching And have a great day And if you are preparing for your interviews All the best for that I hope you get to a dream job And one more thing to notify All the interview questions will be there in the description as well