 Hey, good morning everyone. So today we will be talking about Cognizant interview questions and these were shared by one of our subscriber friend So this video will be definitely helpful for all those people who are looking for interview questions that are being asked for a Java developer in Cognizant and especially for the people Who are about like two years or two to three years experience range? So before Getting into the question. Let us see the mail CTS interview questions. Hi, I have attended CTS interview This is for three years of experience and salary offered is 12 lakhs per annum. Note, please hide my email ID Please find below questions asked in the interview. So this is for as you can see this is for three years of experience guy and Let us dive into the questions now So before getting into the questions part Let us talk about two problems that lot of our subscriber friends face one how to get interview calls as a fresher and two stuck with small companies and coming to the space Freshers the jobs are very hard to come by because of covid currently and secondly many times candidate Miss out a job opportunity because they don't have a better degree or had a poor network So these are the two reasons that freshers who are not getting job these days and second one stuck in small companies so Here we found a solution for these two Problems and that solution is one platform called re-level. Let's quickly visit that Platform and see what it is offering for us. So this is the platform guys re-level So re-level is India's first hiring torment platform It is really helpful for freshers and early stage career individuals as it has more than 500 plus positions plus 50 plus companies already Associated with it currently and believe me. This number is going to shoot up very soon here even as a fresher and even Being from a very small college. You can get a package up to 15 plus lakhs per annum. It just Completely pure your based on your pure talent and skills, which will be considered here and If you can scroll down and see or you can have the list of company names that are already associated with This platform so you can see razor pay Urban company upgrade Webengage and a lot of things five I say a lot many things lot many other companies are so how to Apply so You want here you can see there are three popular tournaments that is business development front-end development back-end development So according to your will according to your choice you can register in any one of the tournament and You can apply our coupon code which is there in the description to get 10% extra discount here and Very important thing here is the registration closes on 22nd June 2021 and the tournament begins on 26 June 2021 and Few important things that I would like to share here. The tournament is not related to like restricted to Be B Tech or MBA Anyone can register and participate in the tournament and the investment that is one seven double nine after coupon is applied will be the best investment of your life There are three tournaments as You can see and in the in each Tournament there will be two rounds one will be brilliant and other is main and upon clearing the main So you will be getting a mentoring session This is this is very important that you will be getting a mentoring sessions from the real level team to help you with clearing the company Interviews so what are you waiting for register participate in the tournament and get the offer? so this So I'm coming to the first question That is what are the different types of results sets in JDBC? So remember correctly There are three types or like forward only scroll sensitive and scroll Intensive I believe so this was very long back that I have worked on JDBC results sets So this was the first question I mean to the second question What is rosette in JDBC? So how to also like rosette is an that is an object that it encapsulates the set of rose if I'm not on To put it in an easy way. So rosette encapsulates the object that is written And coming to the next show what is executive framework So executive framework is like what we can say provided factory methods Like we can say executors provide factory methods Which are used to create thread pools of worker threads to use the executive framework We need to create one such thread pool and submit the task to it for execution. That is about thread pool then what is meant by thread pulling so Like in Java thread pull represents a group of worker threads that are willing waiting for the job and reuse many times In case of thread pool we a group of fixed size threads are created Like after completion of the job thread thread is contained in the thread pool again Like it goes back into the waiting stage again So basically bunch of our threads will be created and will be used as required thread pulling we can say that What is thread join so basically join is a synchronization method that blocks the calling thread Until the thread whose join method is called has completed So we will be having t1 dot join main dot join the thread dot join me that is how we use that What is thread local? So in Java thread local class for what is thread local variables It enables you to create variables that can only be read and write with the same thread If two threads are executing the same code and that code has a reference to a thread local variable Then the two threads can't see the local variables of each other. So that was about thread local Next question is what is the purpose of connection pooling and why do we use connection pooling? Basically to improve the performance go for connection pooling So how to call for services at the same time whereas the response time of four services should be max for response time Okay, max we can do well like we can make a service Synchronized so that only one it can only one it can serve only one request there So we can do that and make other three services in the wait state How to generate custom ID using hibernate or this is a typical process only easy only so How to capture cookie details from browser and send to back end using Ajax calls are not sure like I never worked on Ajax calls So you don't know the answer What is functional interface basically the way interface it is having only one abstract method And having a third function interface annotation So that is known as functional interface So there were many before Java 8 as they were callable runnable and in Java 8 there are many that got introduced newly Why and when do we use functional interface with real-time example in project? So this depends on your requirement completely. So you have to say about your project What is the default method in? Functional interface what is the default method in functional interface? Not sure what in which scenario this was a ask Okay When do we use a default method so usage comes into picture like if you want to have if you want to add a few methods that Few classes only needs but not all the classes that are implementing that interface needs then we go for default methods difference between concurrent hash map and synchronized map Basically concurrent hash map will be like it will be blogging only the segments on which the action is happening like update or adding or removing Synchronized map will block entire map How does the hash map be if this hash code is overridden but not equal and vice versa Yeah, this is one technical like tricky question that you will be expecting in all your entire equation prepare well for that Difference between application server and web server Next question how do disable Tomcat from spring boot application on how to add another server? So this is easy. We can exclude the dependency and we can have Directly we can add the dependency through form. We can do that What is tax errors and jersey and when and why should we use them these are implementation of rest How to control multiple requests coming from clients and how to control access to a shared resource in Java answer is same up or Not sure about the context here again So if you know you can comment it out The comment section and one request is please do like this video because that will definitely motivate others to share their videos So sorry share their interview experiences so that we can share it with you This is the mail Continuation this these are the questions that were shared to us. What is the executive framework? What is meant by thread pulling what is thread join what is thread local? What is the purpose of collection pulling and when do we use connection pulling how to call for services at the time? Think with the maximum response and how to generate customer ID using custom ID using hibernate How to capture cookie details from browser and send to back using a jacks cause what is functional interface? Why and when do we use functional interface? What is default method in functional interface? What do we when do we use default method difference between concurrent hash map and? synchronize map How does hash map be seen if hash code and we do overridden but not the equals and why was wise for some Difference between application server and web server. How to disable Tomcat? So we have covered all the questions. I'm sharing the questions from the same day of interview I think it will I think I will not get select as I have not answered properly Also interviewer himself told this questions is not for three years experience, but he wants me to answer this question Okay Fine, so that was about the interview questions that were asked Cognizant so which contains about most of the questions are from threats multi-threading concepts were asked more Concurrency on collection. There will go interview collect collect questions on collections. They work on rest There were questions on springboard. There were questions on hash map hash code Yeah, pretty good your questions. I could I could say So that's it in this video. So if you're on our channel for the first time, please do subscribers Don't forget to subscribe. There are a lot of Experiences and questions that are being shared You like the video like the content sharing to other technical platforms so that it might help others Provide the feedback as well. So if you want to share your Interview experiences, you can reach out to the email ID that is given in the description and If you want if you are supples like who are we and what we do So we are basically bunch of software engineers who attend interviews and share our real-time interview experiences through these videos You can visit our channel and you can find more than hundred such videos that we have already shared And it would be really helpful for you in tracking and preparing for interviews different company interviews So if you want to contribute us, you can use Amazon affiliation link that is there in the description on your next purchase at Amazon and That's it for now. Thank you. Have a nice day