GyanMatrix Technologies
Interview Questions and Answers
Q1. Which is better? Runnable or thread class?
Both have their own advantages and disadvantages depending on the use case.
Runnable is preferred for code reusability and flexibility.
Thread class is preferred for more control over threads and better performance.
Choosing between the two depends on the specific requirements of the project.
For example, if the project requires multiple threads to share a single object, Runnable is a better choice.
On the other hand, if the project requires fine-grained control over thread execut...read more
Q2. How do maintain session in spring
Session can be maintained in Spring using HttpSession and Spring Session
HttpSession can be used to store session attributes
Spring Session provides additional features like distributed sessions
Session can be configured using annotations or XML configuration
Session timeout can be set using server configuration or programmatic approach
Q3. How do you deploy on server?
Deployment on server involves building, testing and transferring code to a production environment.
Create a build of the code
Test the build in a staging environment
Transfer the build to the production server
Configure the server to run the new build
Monitor the deployment for any issues
Q4. Explain multi threading?
Multi threading is the ability of a program to perform multiple tasks concurrently.
It allows for better utilization of CPU resources
It can improve the responsiveness of an application
It can also introduce synchronization issues and race conditions
Examples include web servers handling multiple requests simultaneously and video games rendering graphics while processing user input
Q5. Types of storages in jvm?
There are two types of storages in JVM: Heap and Stack.
Heap is used for dynamic memory allocation and is shared among all threads.
Stack is used for static memory allocation and is private to each thread.
Objects are stored in the heap while local variables and method calls are stored in the stack.
Heap is larger than stack and can cause OutOfMemoryError if not managed properly.
Q6. What is Smoke testing
Smoke testing is a preliminary testing to check if the basic functionalities of a software application are working fine.
Performed at the beginning of the testing process
Focuses on testing the critical functionalities
Not exhaustive testing, just a quick check to see if the application can be further tested
Helps in identifying major issues early in the development cycle
Q7. What is sanity testing
Sanity testing is a quick and focused testing to ensure that the most critical functionalities of a software application are working correctly after changes.
Sanity testing is a subset of regression testing.
It is usually performed after a minor change in the code or functionality.
The main goal of sanity testing is to verify that the new code changes have not adversely affected the existing functionalities.
It is not exhaustive and does not cover all possible test scenarios.
Exam...read more
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month