Tip 1 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 2 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
This round primarily focused on OOPS in Java and how Multithreading is achieved in Java and the interviewer asked questions revolving around that only.
Explain the use of final keyword in variable, method and class.
In Java, the final keyword is used as defining something as constant /final and represents the non-access modifier.
1) final variable :
i) When a variable is declared as final in Java, the value can’t be modified once it has been assigned.
ii) If any value has not been assigned to that variable, then it can be assigned only by the constructor of the class.
2) final m...
How would you differentiate between a String, StringBuffer, and a StringBuilder?
1) Storage area : In string, the String pool serves as the storage area. For StringBuilder and StringBuffer, heap memory is the storage area.
2) Mutability : A String is immutable, whereas both the StringBuilder and StringBuffer are mutable.
3) Efficiency : It is quite slow to work with a String. However, StringBuilder is the fastest in performing operations. The speed of a String...
Which among String or String Buffer should be preferred when there are lot of updates required to be done in the data?
StringBuffer is mutable and dynamic in nature whereas String is immutable. Every updation / modification of String creates a new String thereby overloading the string pool with unnecessary objects. Hence, in the cases of a lot of updates, it is always preferred to use StringBuffer as it will reduce the overhead of the creation of multiple String objects in the string pool.
What's the difference between User thread and Daemon thread?
User and Daemon are basically two types of thread used in Java by using a ‘Thread Class’.
User Thread :
1) JVM waits for user threads to finish their tasks before termination.
2) These threads are normally created by the user for executing tasks concurrently.
3) They are used for critical tasks or core work of an application.
4) These threads...
Difference b/w Runnable Interface and Callable Interface
Both Runnable and Callable interfaces are generally used to encapsulate tasks that are needed to be executed by another thread. But there are some differences between them as given below :
Runnable Interface :
1) It does not return any result and therefore, cannot throw a checked exception.
2) It cannot be passed to invokeAll method.
3) It was introduced in...
What is thread starvation?
Thread starvation is basically a situation or condition where a thread won’t be able to have regular access to shared resources and therefore is unable to proceed or make progress. This is because other threads have high priority and occupy the resources for too long. This usually happens with low-priority threads that do not get CPU for its execution to carry on.
What is Garbage collector in JAVA?
1) Garbage Collection in Java is a process by which the programs perform memory management automatically.
2) The Garbage Collector(GC) finds the unused objects and deletes them to reclaim the memory.
3) In Java, dynamic memory allocation of objects is achieved using the new operator that uses some memory and the
memory remains allocated until there are references for the ...
This round had questions revolving mainly around Spring and MVC Architecture.
How to enable debugging log in the spring boot application?
Debugging logs can be enabled in three ways -
1) We can start the application with --debug switch.
2) We can set the logging.level.root=debug property in application.property file.
3) We can set the logging level of the root logger to debug in the supplied logging configuration file.
What is dependency Injection?
The process of injecting dependent bean objects into target bean objects is called dependency injection.
1) Setter Injection : The IOC container will inject the dependent bean object into the target bean object by calling the setter method.
2) Constructor Injection : The IOC container will inject the dependent bean object into the target bean object by calling the target bean cons...
What is the @Controller annotation used for? How can you create a controller without an annotation?
The @Controller is a Spring MVC annotation to define Controller but in reality, it's just a stereotype annotation. You can even create a controller without @Controller by annotating the Spring MVC Controller classes using @Component annotation. The real job of request mapping to the handler method is done using @RequestMapping annotation.
What is the root application context in Spring MVC? How is it loaded?
In Spring MVC, the context loaded using ContextLoaderListener is called the "root" application context which belongs to the whole application while the one initialized using DispatcherServlet is actually specific to that servlet.
Technically, Spring MVC allows multiple DispatcherServlet in a Spring MVC web application and so multiple such contexts each specific for respective servlet but...
What are the different properties of MVC routes?
MVC routes are accountable for governing which controller method will be executed for a given URL. Thus, the URL comprises of the following properties :
1) Route Name : It is the URL pattern which is used for mapping the handler.
2) URL Pattern : It is another property containing the literal values as well as variable placeholders (known as URL parameters).
3) Defaults : Th...
How is the routing carried out in MVC?
1) The RouteCollection contains a set of routes that are responsible for registering the routes in the application.
2) The RegisterRoutes method is used for recording the routes in the collection.
3) The URL patterns are defined by the routes and a handler is used which checks the request matching the pattern.
4) The MVC routing has 3 parameters.
Difference b/w View and Partial View
1) The view is not as lightweight as that of Partial view.
2) The view has its own layout page.
3) The Viewstart page is rendered just before rendering any view.
4) The view can have markup tags of HTML such as HTML, head, body, title, meta, etc.
Partial View :
1) Partial view, as the name suggests, is lightweight than View.
2) The partial...
This is a cultural fitment testing round. HR was very frank and asked standard questions. Then we discussed about my role.
Tell me something not there in your resume.
If you get this question, it's an opportunity to choose the most compelling information to share that is not obvious from
Strength -> I believe that my greatest strength is the ability to solve problems quickly and efficiently, which makes me
unique from others.
Ability to handle Pressure -> I enjoy working under pressure because I believe...
Why should we hire you ?
Tip 1 : The cross questioning can go intense some time, think before you speak.
Tip 2 : Be open minded and answer whatever you are thinking, in these rounds I feel it is important to have opinion.
Tip 3 : Context of questions can be switched, pay attention to the details. It is okay to ask questions in these round,
like what are the projects currently the company is investing, ...