Filter interviews by
I applied via Job Portal and was interviewed in Aug 2023. There were 2 interview rounds.
To create a Jar/war file, use the jar command in the terminal or an IDE like Eclipse.
Use the jar command in the terminal to create a Jar file: jar cf jarFileName.jar file1 file2
Use the jar command with 'war' option to create a War file: jar cf warFileName.war file1 file2
In Eclipse, right-click on the project, go to Export > JAR file/WAR file, and follow the prompts
I will use logging, debugging tools like breakpoints, and analyzing stack traces to identify and fix issues in the code.
Use logging statements to track the flow of the code and identify any unexpected behavior.
Set breakpoints in the code to pause execution at specific points and inspect variables and data.
Analyze stack traces to understand the sequence of method calls leading to an error.
Use debugging tools like Eclips...
Use the put() method to replace a value in a HashMap.
Use the put() method with the key of the value you want to replace
Example: map.put(key, newValue);
Front end communicates with the backend in Spring through HTTP requests using RESTful APIs.
Front end sends HTTP requests to the backend server
Backend server processes the requests and sends back HTTP responses
Communication is typically done using RESTful APIs in Spring MVC
Data is exchanged in JSON format between front end and backend
To fetch a value from application.properties file in Spring Boot, use @Value annotation or Environment object.
Use @Value annotation to inject values directly into a field
Use Environment object to access properties programmatically
Example: @Value("${my.property}") private String myProperty;
Example: @Autowired private Environment env; String propertyValue = env.getProperty("my.property");
Some annotations in Spring Boot are @RestController, @Autowired, @Component, @RequestMapping, @Service.
@RestController - used to define RESTful web services.
@Autowired - used for automatic dependency injection.
@Component - marks a java class as a bean so that the component-scanning mechanism of Spring can pick it up and pull it into the application context.
@RequestMapping - used to map web requests to specific handler ...
You can change the data type of a column in SQL using the ALTER TABLE statement.
Use the ALTER TABLE statement followed by the MODIFY COLUMN clause to change the data type of a column.
Specify the new data type for the column after the MODIFY COLUMN clause.
Make sure to handle any data conversion or potential data loss when changing the data type.
You can pull the pids of Java processes using command line tools like jps or ps.
Use 'jps' command to list Java processes along with their pids.
Use 'ps -ef | grep java' command to list all processes with 'java' in their name and find the pid.
You can also use tools like VisualVM or JConsole to monitor and manage Java processes.
To reduce heap memory usage in Java, you can optimize code, limit object creation, use data structures efficiently, and tune JVM settings.
Optimize code by avoiding unnecessary object creation and using efficient algorithms
Limit object creation by reusing objects, using object pooling, or implementing flyweight design pattern
Use data structures efficiently by choosing the right data structure for the task at hand
Tune JV...
mvn clean install is a Maven command used to clean the project, compile the source code, run tests, and package the application.
Removes target directory to clean project
Compiles the source code
Runs tests
Packages the application
Dependencies are downloaded if needed
Top trending discussions
I applied via Approached by Company and was interviewed in Dec 2024. There was 1 interview round.
I applied via Company Website and was interviewed in Nov 2024. There were 2 interview rounds.
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
I have 2 years of experience working with Docker in various projects.
2 years of experience working with Docker in various projects
Proficient in creating Docker containers, managing images, and orchestrating containers using Docker Compose
Familiar with Docker Swarm and Kubernetes for container orchestration
Experience in troubleshooting Docker-related issues and optimizing container performance
Yes, I have experience in Kubernetes.
I have worked on deploying and managing applications on Kubernetes clusters.
I am familiar with creating and managing Kubernetes resources such as pods, deployments, services, and ingresses.
I have experience in using tools like kubectl and Helm for interacting with Kubernetes clusters.
I have implemented CI/CD pipelines using Kubernetes for automated deployment and scaling of applicat
OOP stands for Object-Oriented Programming, a programming paradigm based on the concept of objects.
OOP focuses on creating objects that contain data and methods to manipulate that data.
Encapsulation, inheritance, and polymorphism are key principles of OOP.
Examples of OOP languages include Java, C++, and Python.
Polymorphism in Java refers to the ability of a method to do different things based on the object it is acting upon.
Types of polymorphism in Java include method overloading and method overriding.
Method overloading is when multiple methods have the same name but different parameters.
Method overriding is when a subclass provides a specific implementation of a method that is already defined in its superclass.
Threads in Java allow multiple tasks to run concurrently within a single program.
Threads are lightweight sub-processes that share the same memory space.
They are used to improve performance by allowing tasks to run simultaneously.
Examples include creating a new thread using the Thread class or implementing the Runnable interface.
Spring profile is a way to segregate parts of your application configuration and make it only available in certain environments.
Spring profiles allow you to define different configurations for different environments such as development, testing, and production.
You can use @Profile annotation to specify which beans should be loaded based on the active profile.
Profiles can be activated in various ways such as through app...
Annotations used in Spring Security to apply authorization rules before and after a method is called.
Used in Spring Security to define authorization rules
@PreAuthorize is used to apply authorization rules before a method is called
@PostAuthorize is used to apply authorization rules after a method is called
Both annotations support SpEL expressions for defining rules
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
Java 8 introduced lambda expressions, Java 11 added local-variable syntax for lambda parameters, and Java 17 included sealed classes and pattern matching.
Java 8 introduced lambda expressions for functional programming.
Java 11 added local-variable syntax for lambda parameters to simplify code.
Java 17 included sealed classes to restrict inheritance and pattern matching for instanceof checks and type casts.
Count the number of words in a given string.
Split the string by spaces and count the number of resulting elements.
Handle edge cases like multiple spaces or empty strings.
Consider punctuation marks as part of words unless specified otherwise.
I applied via Walk-in and was interviewed in Nov 2024. There was 1 interview round.
Use Streams to remove duplicates and retain only even numbers from an array.
Convert the array to a stream using Arrays.stream()
Use distinct() to remove duplicates
Filter out odd numbers using filter()
Collect the result using collect(Collectors.toList())
Static methods can be accessed without creating an instance of the class, while final keyword makes the method unchangeable.
Static methods belong to the class itself, not to any specific instance
Final keyword ensures that the method cannot be overridden in subclasses
Static methods are commonly used for utility methods that do not require access to instance variables
Example: Math class in Java has static methods like Ma
The @RestController annotation is used to define RESTful web services while @Controller annotation is used to define MVC controller.
RestController is a specialized version of Controller used for RESTful web services
RestController eliminates the need for @ResponseBody annotation
Controller is used for traditional MVC controller functionality
RestController returns data directly without needing to go through a view resolve...
Microservices are a software development technique where applications are composed of small, independent services that communicate with each other.
Microservices allow for easier scalability and maintenance of complex applications.
Each service in a microservices architecture can be developed, deployed, and scaled independently.
Microservices promote flexibility and agility in software development.
Examples of companies us...
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
I applied via Recruitment Consulltant and was interviewed in Nov 2024. There were 2 interview rounds.
The first round was an interview conducted with a GENAI virtual bot.
Spring Boot uses autoconfiguration to automatically configure the Spring application based on dependencies and properties.
Spring Boot autoconfiguration is achieved through @EnableAutoConfiguration annotation
Autoconfiguration classes are located in the org.springframework.boot.autoconfigure package
Autoconfiguration classes are conditionally applied based on the presence of specific classes or properties
I applied via Naukri.com and was interviewed in Nov 2024. There was 1 interview round.
HashMap is non-synchronized and allows null values, while HashTable is synchronized and does not allow null values.
HashMap is non-synchronized, meaning it is not thread-safe, while HashTable is synchronized and thread-safe.
HashMap allows null values for both keys and values, while HashTable does not allow null keys or values.
HashMap is generally preferred for non-thread-safe applications, while HashTable is used in mul
Claims Associate
326
salaries
| ₹2.3 L/yr - ₹4.5 L/yr |
Associate
182
salaries
| ₹2.3 L/yr - ₹5.2 L/yr |
Senior Software Engineer
172
salaries
| ₹12 L/yr - ₹27.3 L/yr |
Software Engineer
139
salaries
| ₹5 L/yr - ₹16.5 L/yr |
Associate Software Engineer
87
salaries
| ₹3.5 L/yr - ₹9.4 L/yr |
Apollo Hospitals
Fortis Healthcare
Max Healthcare
Manipal Hospitals