 Good morning guys, welcome to our channel. So today in this video, I am going to share you the interview questions that have been asked in capgemne interview so this Questions are contributed by one of our subscriber friend Akanksha. So coming to the interview experience So it was for four years experience and she was selected for that and I'll be Showing you the entire mail like what is the package she got or what is she's asking and what HR is giving so Let us Directly jump into the questions. No the first question was How to over read hash code and equals method so Why to over it? Sorry, why to over at hash code and equals method? So we have to explain the contact between the hash code and equals method here and what will happen if we don't Overread the hash hash code and equals method, especially when we are dealing with hash maps maps Next question is what are generics? So explain this would be a theoretical definition. What are generics? Then there was a question from Java 8. What is the difference between? Map and flat map. So we have to explain the difference between map and flat map these two features for introduced in Java 8 So basically map is for enhancements of the stream and flat map is to flatten the list of list So in that scenario we can use Next question was related to Java 8 coding So if we are using Java 8, then how can we get the unique elements from the list without using any inbuilt functions such as Hashtag so as you have started Java 8 coding question series How we be covering this as part of that we can use what I can say Distinct there is a method called distinct we can with the help of that method or we can get the distinct things out of the Array out of the stream basically so next question Is if we are if we have a list of type object containing in string as well as other data types Then how to check if it is of which data type so we can have Auto-boxing comes into picture and we can make use of instance of method and we can tell what is the instance type if at all I'm understanding the question correctly and even she answered in the note section. So we're using that thing we can do Next question is like this is project specific question We can say which version of Java you have used in your project So if we see there are a lot of questions of Java 1.8 and obviously Java 1.8. She must be using so This is a very common question. I can say Nothing must explain about it and if you are See on the right-side corner use the Amazon link in the description on your next order from Amazon If you want to contribute us anything so that is there in the description Next question was again from Java 8. What is Consumer functional interface like there must be based on your answer you give there there will be more more questions asked on this So this is a functional interface Accept was the I believe accept is a method only that is present inside it Next question So these were the questions are related to Java and next are from spring and hibernate spring spring boot and hibernate So what is qualifier annotation in spring? So you have to explain like what time What I guess a qualifier comes into picture. So what is the advantage that we get out of qualifier annotation? Next is what is dependency injection? So the simple word is dependency as the name goes injecting the dependencies at the right position It's known as dependency injection and as this will be done by Container so that is the way the IOC why that is why it is called inversion of control So the control is taken by now container instead of V creating the objects and inserting it the respective position The container does it for us Next is what is DevTools in spring boot? So these came into picture from the spring boot 1.5. So if at all we are having this dependency So actually spring so if at all we are having this DevTools dependency And if we are at all we are we have started the application and we are making any changes so instead of we stopping and Restarting the application so that our changes get reflected or if you are having this dependency it will do it for us automatically So that is the advantage especially when we are in the development phase. This is very handy Like what DevTools dependency The next question is if you don't want to use any of the embedded servers like Tomcat, JT or undertow How can we configure that use external servers? So there are different approaches to be honest here like it completely depends on us We used to like even though I was working on one of the spring boot project We used to create a war and we used to depend Javas servers. That is the one approach You can have your own approaches what your project follows So we can directly to explore that we can directly Exploit from the dependencies as a palm palm itself that can that is one of the options. I can say then the next question is One of the questions was from hibernate that if you are using one-to-one mapping or one-to-many mapping and if you want That if we remove some data from parent table It should also get removed from the child table also then what should we use? So there is a property called cascade all if we use that We can what I can say We can achieve this functionality. So these were the questions that were shared towards where and This is the screenshot of the mail. So hi team. Hope you are doing well I have been following your YouTube channel for many my interview preparations and literally it helped me a lot I also want to contribute to the channel through my cap-gem interview Experience for which I was selected it was for Java developer role along with microservices and springboard I hope that this would help others other people as well So willing to switch or or preparing for the interview split find the below questions being asked for me in the interview Why to so the question so I have already said low Let me go through it once more time. Why to ordered hash code and equals method? What are generics? What is the difference between map and flat map if you are using Java it then how can we? Get the unique elements from the list if you are using list of type Object containing in and all those things and if you see the answer is also given answer is we will use instance of operator What is the version of Java that you have used in your project Java 8? What is the consumer functional interface in Java? What is qualifier annotation in spring? What is spring dependency injection? What are dev to springboard if we don't want to use embedded servers? How can we handle that scenario and the scenario with parent-child relationships is maintained in hibernate? And if the parent is getting deleted the child should also get deleted So these were the questions have been continuously giving interviews and we will be sharing more and more questions with you And just one more thing that you guys are doing a great job. Thank you. Thank you, Akanksha And when we asked about the salary, so this was our answer So she's asking 10 lakhs per annum and they are giving around 9.5 still It is not confirmed the discussion is still going on. So we are not sure of the complete answer So this was about the interview questions or interview experience that was shared to by towards with by Akanksha So, thank you Akanksha for your time so If you haven't subscribed us, please do subscribe like the like if you have like the content share these two other technical platforms So that it might help someone or provide the feedback in the description or in the comments section So one can definitely question that there are we are seeing a lot of comments saying this Whenever we are saying that for so-and-so experience these questions were asked So people come in the comment section and start fighting with us saying for a fresher We ask these questions for the two years experience candidates. We ask this question So it's up to interviewer. There is no fixed thing that is defined in the What in the market that for a two years experience guy these questions should be asked for a 10 years experience guys these questions should be asked What questions we ask for two years guys can be asked for 10 years guys as well What questions we ask for 10 years experience guy can be asked for two years experience guys as well It completely depends on the interviewer's mindset. Most of the interviews directly when the interview starts These days I'm talking about the pandemic time openly opening the Browsers and directly typing we can hear that I am personally attending the interviews and I can sense I can Find it out that they are typing the questions in the browser and they're directly asking from the sites So there is no guarantee that no matter what is the experience. So they're directly referring the sites and they're questioning us So that happens So if you're on our channel for the first time and if you have a total like who are we and what we do So we are basically a bunch of software engineers who attend interviews and share our real-time interview experiences through these videos So if you see the company names that are getting printed on your screen So these are the companies that we have already shared the interview questions or interview experiences like what salary you can ask there And you can visit our channel We have shared more than hundred plus videos by now and it would definitely help you in your interview preparation and Thank you for your time. Thanks for watching the video That's it for now