 Good morning guys I hope everyone is doing great you already know that we are going to talk about interview questions that were asked as part of TCS or Tata Consultancy Services but apart from that one more important thing to talk here in this video is the reason for rejection. So let us see the mail first so and this video contributor is one of our subscriber friends so here is the mail that we got so this interview was for a 3.2 years experience candidate and we got this mail on 7th August 2021 so here is the mail. Hi team you are doing a great job today I have given an interview for TCS for Jawa Road I was not selected the interviewer told has a feedback as I am giving more bookish answer I need to brush up my practical so this was the reason for rejection and the interview went on for 1 hour and personally I do feel this is a very genuine reason that even if I am taking an interview and someone is giving 100% bookish knowledge then even I will reject because when someone is giving 100% bookish knowledge we somewhere lose confidence on that guy we are low confident on that guy because usually people who are having real time experience hands-on experience do not prefer to give bookish knowledge so if you are preparing for the interview you prepare but whenever you are answering do not look as if you have come prepared here always be casual and by explaining the real time examples more and more and you need to explain the answers that is the key here if you are going through some Google site and giving exactly the same scenarios or same examples that have been used in that site so there are lot of chances even though you give all the answers but your rejection rate would be definitely higher so that was one of the important thing I would like to discuss and this was the right reason to reject a candidate then we will move forward with the questions so I feel our subscriber friend shared only the answer that he was unable to answer so here roughly 9 questions he has shared with us and we will be talking about the answer at the end of the video as well so first question was if there are 2 objects of the same class and same parameters is passed what will be the length of the list how to overcome it to be honest maybe there is nothing would be happening here because list allows duplicates and the length would be too I don't know like what to overcome it here or maybe if you are using set then we need to have the equals and has code method overridden but if you are using list there is no problem with the usage the next question scenario best question if you have four means classes ABCD out of it which is the best way to do dependency injection out of it a and b are mandatory needed to be present rest may be option like be present or may not be present so basically if you have this kind of dependency injection I would prefer to go with setter injection so because you can partially inject the beans there so setter would be the right option here then what is concurrent modification exception so here I have tried to frame the answer so let me see where is here is the answer so concurrent modification exception exception is a predefined exception in Java which occurs while we are using Java collections that is whenever we are trying to modify an object concurrently without permission so concurrently modification exception is present in Java utility package and here we can have a questions on fail fast or fail save iterators as well then the question here is sorry what is the difference between bean and component so we can have answer so I have tried to answer it in the best possible way so difference between bean and component so a direct component auto detects and configures the bean using classbox scanning whereas bean explicitly declares declares a single bean rather than letting spring to do it automatically at the right component does not decouple the reclamation of the bean from the class definition whereas at the right bean decouples the reclamation of the bean from the class definition at the right component is a class level annotation and whereas it the right bean is a method level annotation and we need to have if at all we are using at the right bean we have to annotate the class with the right configuration but the same thing is not applicable when we are using a direct component the next question what is lock release way weight method or sleep like when I think when the lock would be released on weight and sleep so basically weight is like somebody has to notify and sleep is like we'll be mentioning the time in milliseconds so same thing I have tried to answer it like sleep method is used to pass the execution of current thread for specified time like we have to mention the time in milliseconds whereas for weight someone should notify to start the execution so this was the first five questions then there are questions on what are the difference levels of thread executor framework I had to be honest I couldn't understand the question like different levels of threads like if at all we are talking about the JVM threads we have different levels of thread but in the bracket if we are talking about executor framework maybe the question would be like what are the different types by which we can create a thread so there are a couple of ways to create threads out of which one is executor framework as well so the next question is if ordering of residue a little mandatory for request parameter or path variable I don't think so we can use a dread path variable and by passing the key we can get the value I don't think the order order is mandatory how to create CI CD pipeline there is a big process here like because even I am not completely aware of the process I am still trying to learn that thing I couldn't answer this if anyone knows it they can answer it or else you can find it on it on Google easily then the last question what are the advantages of immutable classes so if at all if you are not able to answer this question always remember string class and and just recollect the scenarios where we have used the string class so that will definitely give you this answer so I have listed out few here immutable objects are thread safe so you will not have any synchronization issues immutable objects are good map keys and set elements since this typically do not have do not change once created immutability makes it easier to write use a reason about the code and you can use it as in the parallel programming as well apart from that we can use it as in the caching as well so these are few advantages of immutable classes and then here is the complete mail that I have received high team you're doing a great job today I have given an interview with TCS for the role like Java role and he was not selected there is nothing to worry see rejections are part part of selection so nothing to worry about the crying symbol like emoji that you have just no need to use that everyone would have definitely got rejected in some more other face like in some more other interview so it's nothing wrong like no one is going to say you anything so here the so this with the list of questions nine questions that were shared and he says that I heard people easily crack TCS interview but I think I couldn't answer this question so maybe I should stop giving interview please make a video for it don't stop giving interviews everyone will definitely fail when they try to give interviews if you are watching this video and if you are here still so don't stop you will definitely get an interview this is how we learn actually you fail you come back home you address the issues like where you have not doing good and you learn there I hope you will get your job very soon all the best for that and if you haven't subscribed as you can subscribe is like the video share the content or the technical platforms or provide the feedback in the description as well if you are on our channel for the first time you can visit our channel and take the advantages of other videos as well and if you want to help us out you can reach our Amazon affiliation link in the description while you're doing any Amazon orders and thank you that's it for now and all the best for your interview preparations