 Hello everyone, welcome back to the channel, good evening, good afternoon, good morning. So today in this video we will be sharing Deloitte interview experience and interview questions. This video is contributed by one of our subscriber friend who recently have got an opportunity to have an interview with Deloitte and he has shared his experience and we are sharing that to this video. So this is the mail that we have received and this mail we have received on 12th September. So Deloitte interview experience, hydrant current engineer, your channel has helped me a lot in my preparation. I started my preparation by watching your channel and later on followed other channels too. Thanks a lot for your kind efforts. I recently went through the Deloitte interview and would like to share my experience with the hope that it might help other aspirants too. It was for the role of Java J2W consultant. I have experience of 4.2 years and package offered was 12 lakhs per annum. Below are the questions that were asked to me. Please hide my details. So here the important points are like it was for the role Java J2W consultant and the years experience was 4.2 at the time of interview and package that was offered is 12 lakhs per annum. So the topics that were covered like the topics on which the interview has happened is Core Java, Springboard, Hibernate, REST, Microservices, SQL and data data structures. So let's have the questions now. So these are the first four questions. My brief introduction, my project architecture and text tag used in it. What is JVM? What are different class loaders in JVM? So brief introduction always be prepared for this question but don't expose yourself as if you have already prepared for that question on the brief introduction and always prepare like if you are saying like 3 place years experience then this question is a mandatory interview questions like what is explain your project architecture and if you are not able to explain your project architecture your chances of rejection like are very high because if you are saying you are an experienced candidate and if you are unable to explain your own project architecture. So that gives a negative impact. So and what is JVM? What are different class loaders? And for that we can explain it in this way. So JVM, Java Virtual Machine is an abstract machine. It is a specification that provides runtime environment in which Java byte code can be executed. JVMs are available for many hardware and software platforms that is JVM is platform dependent. JVM performs following operations. It load codes, it verifies the code, it executes the code, it provides runtime environment. And coming to the class loaders, class loader is a subsystem of JVM which is used to load class files with whenever we run a Java program it is loaded first by the class loader then there are three like basically there are three built-in class loaders. Those are bootstrap class loader, extension class loader and system application class loader. So what bootstrap class loader does this? This is the first class loader which is super class of extension class loader. It loads the rt.jar file which contains all the class files of Java standard edition like java.lang package classes, java.net package classes, etc. You can see java.util, java.io, java.sql package classes, etc. And coming to extension class loader, this is the child class loader of bootstrap and parent class loader of system class loader. It loads the jar files located inside java.hom.jre extension directory. And coming to the system or application class loader, this is the child class loader of extension class loader. It loads the loader classifies from class path but by default class path is set to current directory. You can change the class path using the following commands. So this was the first four questions. I am before getting into questions. I would like to discuss something here. Do you know lot of companies now hire based on your talent and skills but not based on your education, qualification or from which college you are? And if you think you have got all the relevant skills for a job in front development, the guaranteed salary of minimum 4 lakhs per annum for non tech roles and 6 lakhs per annum for tech roles and this can go up to 15 lakhs or more. There is no age restriction to apply experienced candidate get can get up to 50% hike on their current salary package by applying to their next job through re-level. I am going to share you two amazing companies which will hire you just in 15 days and those two companies are rapid technologies and animal. So coming to rapid technologies you can see the team sizes of 11 to 50 CTC can go up to 10 lakhs per annum and the headquarters is there in Bangalore and coming to animal, the team sizes of 50 salary can go up to 20 lakhs per annum and it is also the headquarters in Bangalore. Now who hasn't heard about these two companies? These companies are now hiring freshers and people with no experience through re-level by an academy. All you need to do is register for the re-level test which is totally free. No more video resume is required. After this you can give the test as per your comfort and get amazing job based on your skills and you can check the re-level by a re-level achiever twitter page as well here to see how many people are getting hired daily like this is just uploaded two hours back Anubhav whose score was 148 out of 1000 is a sales executive practically and there are many more you can go through that. The best thing about re-level is no degree or specific qualification is needed. Re-level test is free and open to all age groups, re-level achievers who have switched jobs have secured up to 50 percent salary hike from the previous job minimum salary or 4 lakhs for non-tech tech roles and 6 lakh for tech roles maximum salaries can go up to anything in the double digit and video resume is also not required and all this can happen if you take the re-level test which is free of cost. Continuing with the question why string class is immutable because string uses string constant pool which is shared across different objects so that is the reason string class is made immutable how to make a class immutable yeah we had answer on this as well what are basic coops concepts you can go with polymorphism encapsulation abstraction how do you understand by up what do you understand by abstraction how can it be achieved so basically abstraction is hiding of things and this can be achieved through interfaces and abstract classes and here we can answer like how to create immutable class in java we can create our own immutable class in java prior to going ahead go through the characteristics of immutable tea the class must be declared as final so style classes can't be created data members in the class must be declared private so that the direct access is not allowed data members in the class must be declared as final so that we cannot change the value of it once the object is created parameterized constructors should initialize all the fields and by performing a deep copy so that the data members can't be modified with the object reference deep copy of object should be performed with a getter method to retain a copy rather than retaining the actual object so this is how we can answer this so the next section of questions what are functional interfaces so we have to explain what what are functional interfaces so basically this is introduced in java 8 so it has only one method so how can you overwrite the default methods from a functional interface i don't think we can overwrite that thing if you know the assay you can provide that in the comment section which collections have you used in your project so it depends from person to person and project to project what is the internal working of hash map so i have to explain in detail about the internal implementations like how the bucket is calculated how the getter method works how the setter method works sorry add method so why was concurrent hash map introduced how it is different from hash map so basically concurrent hash map we can whenever it is used in multi threaded environment instead of locking the entire map object it just logs the segment so other multiple threads can be can act upon the concurrent hash map so this cannot be happen with the hash map on the hash map the entire objects gets locked so that issue it results come to the next question why do you use a release does it allow duplicates yes it allows duplicates and why do you it depends on the requirement it depends upon the scenario like way to use a release or to use any other list class what are the new features of java it so you can list down all the new features of java it what is multi threading how have you implemented it in your project so it again depends upon the project multi threading in running different processes what is j unit how have you written j unit test cases for your repository class so basically j unit is nothing but testing testing our code and coming to writing the repository we usually mock the repository calls how does a spring boot application work explain the flow so I have to explain about all the what happens when we run a spring boot application as java run as java when we do a run as java come on when we initiate that what will happen so how it gets bootstrapped what all things happen first and all those things should be explained here how do you accept requests from the client which which annotations have you used so basically here indirectly he's asking us to create a request a API we can say which accepts something and what all annotations we use whether we are using a dread controller or a dread rest controller and all those things which design pattern have you used in your project so again this depends upon like vary from project to project I have to explain that this is specific to the individual how do you call a web service from your microservice so we can use freeing client or we can use rest template as well mostly freeing client we will be using which is a advanced thing advanced one explain the annotation at the spring boot application so it is basically combination of three annotations and you can list on all those things what is the difference between a dread component and a dread bean so a dread component can directly be at the class level and a dread bean is at the method level and we need a dread configuration so that it the red bean works what are the various scopes of bean so in spring we have singleton prototype request session and global so we have to explain in detail about which scope you will go with in which scenario so difference between singleton and prototype so singleton is one per the application one for the container and prototype is whenever we request that we will be getting that bean what is session in hibernate is it thread safe difference between session and session factory how do you call a stored procedure using hibernate so these were the three questions that are from hibernate so how have you handled security in your micro services this is one of the important questions so what all things you have considered what all things you do to provide security to your applications usually we do it with tokens JWT tokens so like I we do in my project we do using tokens so I'm saying that you can have your own way of doing it explain the deployment process in your project so we use Jenkins pipelines to deploy so mostly now everyone is moving to cloud so this will be the answer CI CD pipelines what is Docker what are its advantages what is Jenkins so I have to explain this what are benefit we are getting out of Docker Docker or Docker images what is Jenkins process what is does so do you write any scripts this kind of questions you can expect on Jenkins given a list of numbers find the second largest number from it in Java as well as an SQL query so this was the only coding question that was shared with us so by using the Java code as well as the SQL query we need to write the SQL we need to provide a solution to the given question so these were the 32 questions that were shared to us guys so I hope you like the video and it might help someone and this would be provided in the description as well so and if you're on our channel for the first time and if you're wondering who are we and what we do so we are basically bunch of software engineers who attend interviews with different MNCs and share our real-time interview experiences through this video and the company names which you're seeing on your screen so these company interview experiences we have already shared you can visit our channel and get benefited out of it and if you haven't subscribed please do subscribe and if you want to share your interview experience you can mail us at the email id that is there in the description and it might be helpful to others as well so if you haven't subscribed please do subscribe like share provide your feedback whether these videos are helpful to you or not and thank you for watching and before that one thing is we have an amazon association link in the description you can use that link on your next purchase on amazon bye for the next video