Filter interviews by
I applied via Naukri.com and was interviewed in Aug 2024. There was 1 interview round.
Transactions in Spring Boot manage database operations as a single unit of work to ensure data integrity.
Spring Boot provides support for declarative transaction management using @Transactional annotation.
Transactions can be configured at class or method level.
Transactions can be rolled back in case of exceptions to maintain data consistency.
Example: @Transactional annotation on a service method ensures that all databa...
ArrayList is resizable array implementation, LinkedList is doubly linked list implementation.
ArrayList uses dynamic array to store elements, LinkedList uses doubly linked list.
ArrayList is faster for accessing elements by index, LinkedList is faster for adding/removing elements.
Example: ArrayList
REST API is used to communicate between client and server using HTTP methods like GET, POST, PUT, DELETE.
REST API allows clients to access and manipulate resources on a server using standard HTTP methods.
It uses URLs to identify resources and HTTP methods to perform actions on those resources.
Common HTTP methods used in REST API are GET (retrieve data), POST (create data), PUT (update data), DELETE (remove data).
REST A...
Annotations in Spring Boot are used to provide metadata about the application and its components.
Annotations are used to configure Spring Boot applications, define beans, handle requests, etc.
Examples include @SpringBootApplication, @RestController, @Autowired, @RequestMapping, etc.
Java 8 introduced several new features including lambda expressions, functional interfaces, streams, and default methods in interfaces.
Lambda expressions allow for more concise code and enable functional programming.
Functional interfaces are interfaces with a single abstract method, used for lambda expressions.
Streams provide a way to work with collections of objects in a functional style.
Default methods in interfaces ...
Interfaces in Java are implemented using the 'implements' keyword, allowing classes to provide specific implementations for methods defined in the interface.
Interfaces in Java define a contract for classes to implement, specifying method signatures without implementations.
A class can implement multiple interfaces by separating them with commas.
Classes implementing an interface must provide concrete implementations for ...
Stream API in Java provides a way to process collections of objects in a functional style.
Stream API allows for functional-style operations on collections like map, filter, reduce, etc.
It supports lazy evaluation, meaning operations are only performed when needed.
Streams can be sequential or parallel, depending on the source and operations used.
Spring Boot simplifies the setup and development of Spring applications by providing a convention-over-configuration approach.
Spring Boot eliminates the need for XML configuration by using annotations and sensible defaults.
It includes embedded servers like Tomcat, Jetty, or Undertow, making it easy to deploy standalone applications.
Auto-configuration feature reduces the amount of boilerplate code needed to set up a Spr...
throw is a keyword used to explicitly throw an exception, while Throwable is a class that serves as the base class for all exceptions in Java.
throw is used to throw an exception in a method, while Throwable is the superclass of all exceptions in Java.
throw is followed by an instance of Throwable class or its subclasses, while Throwable is a class that provides common methods for handling exceptions.
Example: throw new N...
I applied via Naukri.com and was interviewed in Feb 2022. There was 1 interview round.
I applied via Naukri.com and was interviewed in Nov 2021. There were 2 interview rounds.
Java MCQ questions
HCL Group interview questions for designations
Top trending discussions
I applied via Walk-in and was interviewed before Dec 2020. There were 3 interview rounds.
I applied via Naukri.com and was interviewed before Nov 2020. There were 3 interview rounds.
Angular has several lifecycle methods that are called at different stages of a component's life.
ngOnInit() - called after the component is initialized
ngOnChanges() - called when the component's input properties change
ngDoCheck() - called during every change detection cycle
ngAfterViewInit() - called after the component's view has been initialized
ngOnDestroy() - called just before the component is destroyed
Pipes are a feature in Angular that allow for data transformation before displaying it in the view.
Pipes are used to format data in the view
They can be used to filter, sort, and transform data
Examples include the date pipe, currency pipe, and uppercase pipe
Global error handling in Angular can be done using ErrorHandler class.
Create a class that implements the ErrorHandler interface
Override the handleError() method to handle errors globally
Provide the ErrorHandler class in the providers array of AppModule
Use the error handling service to log errors or display error messages
Custom directives are a way to extend HTML with new attributes and functionality.
Types of custom directives are attribute, element, and class directives.
Attribute directives modify the behavior of existing HTML elements.
Element directives create new HTML elements.
Class directives modify the behavior of existing HTML elements based on their class.
To create a custom directive, use the directive() method of the AngularJS ...
I was interviewed in Mar 2021.
I applied via Naukri.com and was interviewed in Apr 2021. There were 3 interview rounds.
based on 2 interviews
Interview experience
based on 6 reviews
Rating in categories
Technical Lead
3.3k
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
3.2k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
2.7k
salaries
| ₹0 L/yr - ₹0 L/yr |
Lead Engineer
2.4k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Analyst
2k
salaries
| ₹0 L/yr - ₹0 L/yr |
HCLTech
TCS
Tata Group
Wipro