 Good morning guys. I hope everyone is doing great. Welcome back to the channel. So today in this video we are going to share Java developer interview questions that were asked at CMM Naval 5 company and this video was shared by one of our subscriber friend and in this video we are going to talk about like the questions that were asked to him were on core Java, Springboard, Micro Services and coding. So here is the mail from our friend Sai Shankar who has shared this interview, his interview questions that he has encountered although he kept the company name as confidential but he has shared us the questions. So you can see the mail software developer 3.5 years of experience and the package is whooping 25 lakhs per hour and that too it is fixed. High team I am glad to inform that I have been offered a CTC as mentioned above with the CMM Naval 5 company. Below are the questions I encountered during various rounds of interview. So the questions are divided into different sections like coding, Java, Micro Services. So let us see what were asked. So basic questions or common questions in all the rounds. These are the manager interview questions in respect of your experience or in respect of your technical stack. So those questions are like explaining about the project, the current project what you are working, explaining about your roles and responsibilities in your project or what is your day to day activity that you do. Text-accelerated questions that you have mentioned on your resume and domain or which domain you are in from healthcare domain or you are from retail or you are from banking domain. So do the domain specific questions get like few like not in deep but there are scenarios that you may encounter the domain specific questions as well. So he has encountered these four questions in all the rounds. So whenever you are preparing for an interview please do prepare on your project architecture that is your current project architecture, your technical stack that you are mentioning on your resume and domain or business based questions. Please do expect this also and roles and responsibilities as well. So the next section of questions are typical Java based questions. So here are the 10 questions that he has shared with us. So OOPS concepts, solid principles association versus composition versus aggregation. So basically it covers most of the things and I hope this was in deep discussion as well. Inheritance based course snippets, some tricky child reference, parent reference based questions, overriding questions and etc. JVM architecture. So there are questions of JVM architecture follows with class loaders. So obviously whenever there is a question on JVM definitely there will be a question on class loaders as well. Exceptions in project I have worked on. Global and local exception handling follow-ups like exceptions in overriding how like whatever things you can apply there. Like what exceptions you can overwrite, parent shell or exception relationships and all those things. Immutable classes and benefits or disadvantages of immutable classes. So this was the fifth question. Collections framework hash map, concurrent hash map, link list versus array list. So almost like all the major collections what we use here is discussed was like questions were asked on those things and this is from all the rounds whatever the questions that has been shared. Java 8 features, streams, all operations and functional interfaces. So indeed there would have been a discussion on Java 8 features. Why functional programming? We have to give the what advantage we do get while using functional when we are going approaching the functional programming. Serialization and marker interface concepts. So theoretical questions on serialization and marker interface. I hope that that were asked here. Springboard advantages like what all springboard advantages you know you can list it out. So these were the questions, 10 questions that were asked from typical Java based question and before getting into the next section let us have a look on the platform which provides jobs and that platform is none other than re-level. In the past few days you have been hearing about re-level test and some of you have registered the test and some of you have told me that you haven't registered for the test because of multiple reasons. I have some exciting news for every one of you. Re-level has launched two new tests in the domain business analyst roles data and data analyst roles. They have some amazing companies on board with a package of 22 lakhs per annum. Sign up on the platform today to check out all the companies like train, upgrade, reserve, etc. that are using re-level platform to hire for their companies. You can even try out free sample papers to access your skills for the test. You just need 150 marks in the first phase to qualify for the second phase. After the second phase a 700 plus course lands you in the interview. Job opportunities are some amazing re-level swags. Re-level test are free of course with no charges, no monetary and terms and conditions. Once you qualify for the re-level test you have to access, you have access to 1000 plus jobs across top companies a guaranteed package for more than 4 lakhs for non-tech guys and 6 lakhs per annum for the tech roles. There is no age or experience limit eligibility. If you are 18 players you can attempt the re-level test to get in 50% height place the next job to the product based company. You search for finding the right job ends now with the re-level. Now you can register to a re-level test and just for I say sign up on re-level.com, select the type of test of your choice whether you want to front end, back end or business, select a date and book a slot when you want to give the re-level test. Trots are limited so I suggest book it as fast. That's it. All runs of tests will be completed in a single day. You can also be published on the same day itself. Once you qualify in the re-level test based on the score you get to create your promising re-level profile which will then be shared to the companies for further processes. Sit back and relax companies will reach out to you based on your profile. The better your re-level score the more companies will reach to use. So what are you waiting for register for the re-level test today and if you are someone who haven't heard about re-level here are the few benefits of participation in re-level test. Over 50 place companies include Tau.com which becomes like ready upgrade, reserve pay, urban company and many more higher through re-level. Thousand place job opposition across business development, front end development and back end development completely online and can be taken from comfort of your home. The best part is that you can take it for free. Finish your test in a single day in your choice and get your re-level score. Once you clear the test with your qualifying score you will be able to create a promising candidate profile that will help you showcase your skills and stand out of the crowd and some of the standards always noticed by the companies. To get a re-level profile candidate has to score more than 700 in the test which will be the qualifying criteria. The candidates again take the test after 30 days if they didn't quit the qualifying criteria also the candidates will be rewarded with the exciting goodies like macbook, iphone and many more for the highest rank holders in the re-level test. With re-level you are unique position to invite interest from the companies instead of hunting for the opportunities on your own. Once you have the great score you will sit back and relax the companies will reach out. You can check the job pages mentioned in the video description to know more about the company hiring. The tests are ideal for candidates who are 18 place or have less than 3 years of experience. You should be able to also join within the 30 days from receiving the offer. These jobs are not limited to beta core MBA degree candidates anyone can apply as long as they are 18 place or less than 3 years of experience. So that was about the re-level. Let us continue with our questions. The next section was not so common questions. Design an abstract load balancer. Types of blocks. Difference between re-entrant and synchronized blocks. Can the bane method be synchronized? Follow-up on synchronization class level and block level or method object level. Volatile keyword. Write a code to demonstrate a deadlock. Follow-ups like race condition in multi-threading. Double locking singleton design pattern blocking queues and what would be the output of the given line. Next if using a custom object as a key in hash map, considerations, changes in the custom object and reasons why would you do them? Answer make it immutable and implement equals and hash code. Just we need to already equals and hand hash code to make it as a key like any custom class to make it as a key because if at all we are not doing the equals and hash code method breaks and there are high chances that it won't work as expected. How Spring Boot configuration works internally? Hint, meta and n of spring, vector, conditional, beans, annotations. So you have to give a brief answer on this. How it works internally? The configuration thing. What are generics and the performance implications? Hint type erasers. Is it mandatory to make the class final if making a custom immutable class erasers? Why yes or no? So it's up to you. Decide why? Is it mandatory to make a class final if a class is, if a class is, if a class, if we are making a class as an immutable class. What are the possible scopes of access modifiers for an overridden method in child class? So it cannot, it can so it can degrade the scope but it cannot enhance the scope here and come into the 14th question. So it was like what would be the output of the code here. So if you've come to 15th question what happens if you modify the value of an element in a list while iterating using iterators? So nothing will happen. I directly don't throw an exception because it works on the copy. So this with the questions, typical questions from the section then the next section are coding questions. So write a program to group an argums. Write a program to shift all the zeroes at the front followed by all ones. This is one line code actually you can initiate the array and wherever the zero is not present you just don't need to insert anything. Find the nth node from last in linked list. Constant is size can't be found. This is actually challenging. Write a program to find the max length of palindrome substring in a string. Dynamic programming indeed challenging if you don't know. This is if you practice this is this is one of the important I can say important questions because lot of times we encounter this if you are an experienced candidate you will definitely encounter this type of this question like max length of palindrome substring in a string given string. Find the kth smallest element in an array without sorting it. Hint use, max heap priority queues. There are different ways to find this. One of the ways heap priority queue. So this is with the coding questions and this is a section where we can discuss about microservice specific interview questions and this is the nine questions that are from microservices. So advantages and disadvantages of microservices. Assure cloud resource related questions blobs, functional apps, logics app. As I worked on them while explaining the architecture we opted. How would you roll back all changes in a scenario of services calling and something going wrong among them like a is calling b, b is calling c and we can there are different ways but Saga is most preferred these days. So if you have worked on microservices architecture you will definitely know about what is Saga integration so how Saga works you have to explain that. How would you design an application to send emails to all client's customers on a specific day so there are different ways again it depends on your architecture. Design patterns in microservices so what are design patterns that have been used in microservices. Caching related questions as I have used some so you can this is again like depends upon your project. Your project using caching mostly like 99% projects will use caching so this question can be asked. Circuit breaker implementation so I have to explain about the implementation like what issue it results as well. When would you suggest someone not to go for microservice architecture. So what he said is I said it depends on the budget they can invest and scale up application as smaller ones can be better architect monologically you may answer differently. Most of the things like if at all the application is small and if you can maintain it monologically there. Security across the application in a distributed network so like we use OAuth here in our application in our microservice application it depends upon your application so these were the questions so here is the complete mail you can see so you can halt for a moment and you can go through the mail. So I think I have missed one question here what happens if equals is not there and hash code is implemented for hash map so that questions I have missed. So this is a big mail so this is the complete mail and note here not sharing the recordings as they are too long to be heard that's it hope this helps you in getting the job you wanted okay thank you Sai Krishna for Sai Shankar for sharing your interview questions this might I feel this will definitely help at least few so that's it that's it from this video and if you are on our channel for the first time and if you are wondering 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 and if you have wondering what are the company that are getting printed on your screen so these companies we have already shared the interview experiences or interview questions you can visit our channel and take a look on this as well and you can get benefit out of it so if you want to share your interview experience you can email us at the email that is there in the description so if you haven't subscribed yet please do subscribe like share and provide the feedback I would request to please do share this to other technical platforms as well so that it might help someone who is looking out for similar kind of videos and it might help him in cracking his interview and thank you for watching I hope you have a great day and you get succeeded in your life