 Hello guys, I hope everyone is doing great. Welcome back to our channel. So today in this video, we'll be talking about Thermo-officer scientific interview questions and this video was contributed by one of our subscriber friend So recently she got an opportunity to have an interview with thermo-officer scientific and the same she has shared with us So here is the mail that we have received. This was received on 2nd September 2021 Thermo-officer scientific interview questions for Java Position with five place yourself experience. Hi team, as always you do Please hide my identity and take off the name and email ID I want to thank you and your entire team from the bottom of my heart for the great work The internet is flooded with so many interview questions and answers on each and every topic But the interview perspective it's really confusing and we came across scenarios where we miss very minute details during our preparation Here comes the role of drunken engineer YouTube channel your YouTube your videos are quite helpful for the people searching out for new Opportunities it gives us the path and idea of interview preparation as it is include the real-time interview experiences as well This has compelled me to share my interview Experience with you so that it can be useful for someone like me really Thank you for sharing your interview experience and thanks for the kind words if you want to share your experiences as well You can reach us at the email ID that is there in the description So coming to the questions first question like I have segregated into the sections limitations of Mokito and Advertisement before in J unit Like what is that before in J unit? So we can answer this in this way So limitations coming to the limitations of using Mokito We cannot mock constructors or static methods even private methods. We cannot mock we need Java 6-plus version also, we cannot mock equals and hash code method and Advertisement before an addition in J unit is used on method containing Java code to run before each test case That is it runs before each test execution. So whatever method we are annotating with that there it before that runs Coming to the next question Comparator interface implements with the example Implementations with example so you can have your own example here. So we need to like explain the process of What I can say like how do we over at the compare method and what logic goes there and what all our advantages we get using comparator over comparable interface and Many things you can talk about on this Coming to the next question. This is a quitting question. So recursive function to reverse a string So this you have to practice a lot to answer this type of question So before going to the next question have a quick announcement or this will definitely help you please do watch There are different important other questions as well Do you know that lot of companies now offer jobs only based on your skills? So you don't need to worry if you do not have a degree from a good college or if you lack experience Talent and skills is all that matters If you think you have all the relevant skills for a job in business development The guaranteed salary for 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 experience candidates can get up to 50% Hiking that's salary and Today I'm going to share you with you two amazing companies that will hire you in just 15 days They're coming to the first company. It is Wingify software private limited the headquarters in Delhi team size is of 230 plus people CDC can be offered up to 14 lakhs per annum and Wingify software private limited spills as products hurry now apply for the openings so that you can get your dream job and the latest technologies to work on and coming to the second company that is Superly the team sizes currently 18 the salary can be offered up to 10 lakhs per annum the headquarters It is Hyderabad and it is one platform for lifelong learners to enhance their learning efficiency and productivity To apply for this as well if you're interested Who hasn't heard about Superly and Wingify? These two companies are no hiring freshers and people with no experience through a level by an academic all you need to have is to do register for the relevant test and Crack the interview there now there is no require for video resume anymore Otherwise, you can give the test as per your comfort and get an amazing job based on your skills and you can also Follow a reliable achievers Twitter page where you can see The different people getting their dream jobs already through really well test So what are you waiting for grab this opportunity? This is a lifetime opportunity. I can say Because this is absolutely free of cost. You don't require To pay any money now and the salaries offered are very good Here you can get 50% plus salary hike as well. No video resume is required now So grab this opportunity without wasting your time Coming to the next question guys difference between interface and abstract class So after Java 8 introducing it new features the difference it really minimum now so you can say the same answer as well and What are the collection? Interfaces and it's detail and internal implementations. So this is one of the important interview questions like Explaining completely about collection hierarchy and internal implementations of the collections that you have worked on especially like like Hash map phone current hash map or a list has said So please work on these things like how internally they are working because there are scenarios where you have to create your own collection objects like collection things Okay, coming to the next question contract of equals and hash code. Why do we need to order hash code and equals? So basically if it all if two objects are equal then the hash code has to be equal But it doesn't mean that if the hash code is equal the two objects are equal That is the contract between equals and hash code method And if you don't read hash code and equals method then while Getting the object from the hash map or it it it what I can say like it behaves weirdly Like it there are chances that duplicate objects may be get inserted So you need to order hash code and equals method for proper functioning Coming to the next question. What is garbage collection high and how it works? So for that we can Answer this in this way in Java garbage collection is a process of managing memory automatically It finds the unused objects that are no longer used in the program and delete or remove them to free up the memory The garbage collection mechanism uses several garbage collection algorithm. The most popular algorithm is mark and sweep and Few important points about garbage collector It is controlled by the thread known as garbage collector Java provides two methods system.gc and runtime.gc that sends request to JVM for garbage collection Remember, it is not necessary that garbage collections collection will happen once we trigger that method But Java programmers are free from memory management. We cannot force the garbage collection to collect the garbage It depends on the JVM. If the heap memory is full then JVM will not allow to create a new object and allows shows an error Out of memory or when garbage collector removes the object from the memory first the garbage collector Thread calls the finalist method of that object and then remove the object That was about the garbage collection thing Next question heap and stack memory in Java So I have few points related to heap and stack memory in Java So in Java memory management is what vital process it is managed by Java Automatically the JVM divides the memory into two parts that is stack and heap From the perspective of Java both are important memories But both are used for different purposes the major difference between stack memory and heap memory that stack is used to store Order of the method execution and local variables while heap memory stores the objects and it chooses dynamic memory allocations and Deallocation So this was about a small part like this can this will work out if you do this answer on the heap and stack memory Design an API using REST So you this basically this question is asked to check whether you have hands-on experience in creating the REST APS or not So if you're not Don't do practice for interview purpose because this is one of the mandatory questions that is becoming What happens when a stack memory is full and when a heap memory is full? So basically exception comes so whenever a stack memory is full stack or for exception will come and Whenever whenever and he fills up the heap out of memory exception will come and if there is Basically, that is what we get can we overload main method and Can we overwrite the main method so one is yes one is no So let us see what is just and what is no yes We can overload the main method in Java But JVM calls the original main method it will never call the overloaded main method and can we override no because static methods Cannot be over done in Java What are stored procedures? So stored procedures is a set of structured query language statements with an assigned name. These are stored in relational Database management systems or RDBMS as a group so it can be reused and shared by multiple programs So these were the questions guys this was the technical questions that were shared by one of our subscriber friend What she has faced in the interview so here is the complete mail You can see you can halt for a moment and you can go through it And we are really sorry that we are not getting enough time to post it immediately because we are also having our personal commitment so We were not able to post because this was sent in September and this is October So here is a mail complete mail So here are the questions thanks a ton and keep the channel shine like this with all the interview experience So if you are on a channel for the first time and wondering who are we and what we do We are basically a bunch of software engineers what an interview to different agencies and share our real-time interview experiences through these videos and If you want to if you want to share your interview experience, you can reach a set at the email ID that is there in the description And if you haven't subscribed us, please do subscribe because there are a lot of Like a lot of people have already shared, but we are not getting time to share those videos. So Not to me though if you don't want to miss you can subscribe us and Please do subscribe like Share and provide the feedback in the comment section, please do share it to other technical platforms as well So that it might help someone who is looking out for similar kind of videos and Thank you for watching and have a great day