Filter interviews by
Clear (1)
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 was interviewed in Apr 2017.
I am a software developer with a passion for coding and problem-solving. My family is supportive and has always encouraged my career in tech.
Experienced software developer
Passionate about coding and problem-solving
Supportive family that encourages my career in tech
I was interviewed in Jul 2017.
Autoboxing is the automatic conversion of primitive data types to their corresponding object wrapper classes.
Autoboxing is useful when working with collections that require objects instead of primitives.
Example: int i = 5; Integer j = i; //autoboxing
Unboxing is the opposite of autoboxing, where an object of a wrapper class is converted back to its corresponding primitive type.
Example: Integer j = 5; int i = j; //unboxi
Typecasting up and down refers to converting a variable of one data type to another data type of higher or lower precision.
Typecasting up involves converting a variable of lower precision to a variable of higher precision, such as converting an int to a double.
Typecasting down involves converting a variable of higher precision to a variable of lower precision, such as converting a double to an int.
Typecasting can resul...
To iterate a map in Java, use a for-each loop or an iterator.
Use the entrySet() method to get a set of key-value pairs
For-each loop: for(Map.Entry
Iterator: Iterator
Use hasNext() and next() methods to iterate through the map
Types of synchronization in Java
Synchronized methods
Synchronized statements
ReentrantLock
Semaphore
CountDownLatch
Access modifiers in method overriding
Access modifiers in the overriding method cannot be more restrictive than the overridden method
The access modifier can be less restrictive or the same as the overridden method
Private methods cannot be overridden
Examples: public method can be overridden by public or protected method, but not by private method
I was interviewed before Mar 2021.
Round duration - 60 minutes
Round difficulty - Easy
This was an easy round which went really smooth.
Calculate the Nth term in the Fibonacci sequence, where the sequence is defined as follows: F(n) = F(n-1) + F(n-2)
, with initial conditions F(1) = F(2) = 1
.
Calculate the Nth Fibonacci number efficiently using dynamic programming.
Use dynamic programming to store previously calculated Fibonacci numbers to avoid redundant calculations.
Start with base cases F(1) and F(2) as 1, then iteratively calculate F(n) using F(n-1) and F(n-2).
Ensure the input N is within the constraints 1 <= N <= 10000.
Example: For N = 5, the 5th Fibonacci number is 5 (1, 1, 2, 3, 5).
Given a positive integer N
, your task is to determine and return all prime numbers less than or equal to N
.
N = 10
2 3 5 7
N = 20
Implement a function to return all prime numbers less than or equal to a given positive integer N.
Create a function that takes a positive integer N as input
Iterate from 2 to N and check if each number is prime
Use a helper function to determine if a number is prime
Return an array of all prime numbers less than or equal to N
A merge join in SQL is a method of combining two sorted datasets by matching corresponding rows based on a specified condition.
Merge join is used when joining two large datasets that are already sorted.
It is more efficient than other join methods like nested loop join or hash join for sorted datasets.
The join condition must be an equality condition.
Example: SELECT * FROM table1 INNER JOIN table2 ON table1.id = table2.i
Round duration - 30 minutes
Round difficulty - Easy
The round went excellent. I really enjoyed it. Just be confident about whatever you answer
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : 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.
I was interviewed before Mar 2021.
Round duration - 60 minutes
Round difficulty - Easy
This round went well. Interview depends on your basic knowledge of C/C++.
Given two sparse matrices MAT1
and MAT2
of integers with dimensions 'N' x 'M' and 'M' x 'P' respectively, the goal is to determine the resulting matrix produced by their multipl...
Implement a function to multiply two sparse matrices and return the resulting matrix.
Create a function that takes two sparse matrices as input and returns the resulting matrix after multiplication
Iterate through the non-zero elements of the matrices to perform the multiplication efficiently
Handle the edge cases such as empty matrices or matrices with all zero elements
Ensure the dimensions of the matrices are compatible
Tanmay and Rohit are best buddies. Tanmay gives Rohit a challenge involving an array of N natural numbers. The task is to perform and answer a series of queries on the ...
Count the number of even or odd numbers in a range of an array based on given queries.
Create an array to store the input numbers.
Iterate through the queries and update or count even/odd numbers based on the query type.
Output the count of even or odd numbers for each query of type 1 or 2.
Round duration - 30 minutes
Round difficulty - Easy
Typical HR round with behavioral problems.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : 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.
I was interviewed before Sep 2016.
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