i
Coforge
Work with us
Filter interviews by
The Java Collection Framework provides a set of classes and interfaces for storing and manipulating groups of objects.
Consists of interfaces like List, Set, and Map.
List example: ArrayList, LinkedList for ordered collections.
Set example: HashSet, TreeSet for unique elements.
Map example: HashMap, TreeMap for key-value pairs.
Supports generics for type safety.
Program to filter employees using Java streams
Create a list of employees
Use stream() method to convert list to stream
Use filter() method to filter employees based on condition
Use collect() method to convert stream back to list
Setting port number as 0 in Spring Boot for a service
Setting port number as 0 allows the operating system to choose an available port
This is useful when running multiple instances of the same service on the same machine
To set port number as 0 in Spring Boot, add 'server.port=0' to application.properties or application.yml
Changing annotations on Spring Boot classes can have significant impact on the application.
Changing annotations can affect the behavior of the application
Annotations can control the lifecycle of beans, security, caching, etc.
Removing or modifying annotations can cause runtime errors
Adding new annotations can introduce new functionality
Annotations can affect the performance of the application
ArrayList is implemented as a resizable array while LinkedList is implemented as a doubly linked list.
ArrayList provides constant time for accessing elements while LinkedList provides constant time for adding or removing elements.
ArrayList is better for storing and accessing data while LinkedList is better for manipulating data.
ArrayList is faster for iterating through elements while LinkedList is faster for addin...
A set of interview questions for a Senior Java Developer position.
Singleton class in Java is a class that allows only one instance of itself to be created.
String is immutable in Java because it ensures thread safety and allows for efficient memory management.
ArrayList and LinkedList are both implementations of the List interface, but differ in their underlying data structure and performance characteristics.
IOC (In...
Spring Boot has various exceptions for different scenarios.
DataAccessException - for database access errors
HttpMessageNotReadableException - for errors in HTTP message conversion
MethodArgumentNotValidException - for validation errors in request parameters
NoSuchBeanDefinitionException - for errors in bean configuration
UnauthorizedException - for authentication and authorization errors
I applied via Approached by Company and was interviewed in Oct 2024. There was 1 interview round.
I applied via Recruitment Consulltant and was interviewed in Mar 2024. There was 0 interview round.
The Java Collection Framework provides a set of classes and interfaces for storing and manipulating groups of objects.
Consists of interfaces like List, Set, and Map.
List example: ArrayList, LinkedList for ordered collections.
Set example: HashSet, TreeSet for unique elements.
Map example: HashMap, TreeMap for key-value pairs.
Supports generics for type safety.
I applied via Naukri.com and was interviewed in Mar 2024. There was 1 interview round.
I applied via Job Portal and was interviewed in Apr 2024. There was 1 interview round.
I appeared for an interview in Jan 2024.
A set of interview questions for a Senior Java Developer position.
Singleton class in Java is a class that allows only one instance of itself to be created.
String is immutable in Java because it ensures thread safety and allows for efficient memory management.
ArrayList and LinkedList are both implementations of the List interface, but differ in their underlying data structure and performance characteristics.
IOC (Inversi...
I applied via Recruitment Consulltant and was interviewed in Jun 2022. There were 2 interview rounds.
ArrayList is implemented as a resizable array while LinkedList is implemented as a doubly linked list.
ArrayList provides constant time for accessing elements while LinkedList provides constant time for adding or removing elements.
ArrayList is better for storing and accessing data while LinkedList is better for manipulating data.
ArrayList is faster for iterating through elements while LinkedList is faster for adding or ...
Program to filter employees using Java streams
Create a list of employees
Use stream() method to convert list to stream
Use filter() method to filter employees based on condition
Use collect() method to convert stream back to list
Spring Boot has various exceptions for different scenarios.
DataAccessException - for database access errors
HttpMessageNotReadableException - for errors in HTTP message conversion
MethodArgumentNotValidException - for validation errors in request parameters
NoSuchBeanDefinitionException - for errors in bean configuration
UnauthorizedException - for authentication and authorization errors
Changing annotations on Spring Boot classes can have significant impact on the application.
Changing annotations can affect the behavior of the application
Annotations can control the lifecycle of beans, security, caching, etc.
Removing or modifying annotations can cause runtime errors
Adding new annotations can introduce new functionality
Annotations can affect the performance of the application
Setting port number as 0 in Spring Boot for a service
Setting port number as 0 allows the operating system to choose an available port
This is useful when running multiple instances of the same service on the same machine
To set port number as 0 in Spring Boot, add 'server.port=0' to application.properties or application.yml
What people are saying about Coforge
I appeared for an interview before Dec 2020.
Round duration - 100 Minutes
Round difficulty - Medium
You are provided with a singly linked list and an integer K
. The objective is to make the Kth
node from the end of the linked list the starting node of the linked list.
Given a singly linked list and an integer K, rearrange the list such that the Kth node from the end becomes the starting node.
Traverse the linked list to find the length and the Kth node from the end.
Update the pointers to rearrange the list accordingly.
Handle edge cases like K being equal to 1 or the length of the list.
Given a string 'STR' consisting solely of the characters “{”, “}”, “(”, “)”, “[” and “]”, determine if the parentheses are balanced.
The first line contains an...
Check if given strings containing parentheses are balanced or not.
Use a stack to keep track of opening parentheses
Iterate through the string and push opening parentheses onto the stack
When a closing parentheses is encountered, pop from the stack and check if it matches the corresponding opening parentheses
If stack is empty at the end and all parentheses are matched, the string is balanced
Round duration - 120 Minutes
Round difficulty - Medium
You are provided with a sorted dictionary (by lexical order) in an alien language. Your task is to determine the character order of the alien language from this dictiona...
Given a sorted alien dictionary in an array of strings, determine the character order of the alien language.
Iterate through the dictionary to build a graph of character dependencies based on adjacent words.
Perform a topological sort on the graph to determine the character order.
Return the character array representing the order of characters in the alien language.
You are given an array/list CHOCOLATES
of size 'N', where each element represents the number of chocolates in a packet. Your task is to distribute these chocolates among 'M'...
Distribute chocolates among students to minimize the difference between the largest and smallest number of chocolates.
Sort the array of chocolates in ascending order.
Iterate through the array and find the minimum difference between the elements by considering 'M' elements at a time.
Return the minimum difference found as the result.
Round duration - 120 Minutes
Round difficulty - Medium
You are provided with a square matrix of non-negative integers of size 'N x N'
. The task is to rotate this matrix by 90 degrees in an anti-clockwise directi...
Rotate a square matrix by 90 degrees anti-clockwise without using extra space.
Iterate through each layer of the matrix from outer to inner layers
Swap elements in groups of 4 to rotate them in place
Handle odd-sized matrices separately by adjusting the loop boundaries
Given a binary string S
of length N
where initially all characters are '1', perform exactly M
operations, choosing from four specific operations, and determine how many dis...
Count the number of distinct final strings possible after performing a given number of operations on a binary string.
Iterate through all possible combinations of operations to determine the final string after each operation.
Use bitwise operations to efficiently flip the bits based on the chosen operation.
Keep track of distinct final strings using a set data structure.
Return the size of the set as the number of distinct...
Round duration - 120 Minutes
Round difficulty - Medium
Given a list of integers of size N
, your task is to determine the Next Greater Element (NGE) for every element. The Next Greater Element for an element X
is the firs...
Find the Next Greater Element for each element in a list of integers.
Iterate through the list of integers from right to left.
Use a stack to keep track of elements for which the Next Greater Element is not yet found.
Pop elements from the stack until a greater element is found or the stack is empty.
Assign the Next Greater Element as the top element of the stack or -1 if the stack is empty.
Tip 1 : Practice Medium level question.
Tip 2 : Do atleast 2 projects
Tip 3 : More Focus on your Communication skill
Tip 1 : Full Command on your resume and make short atleast 1 page with normal color and font.
Tip 2 : Have mentioned some good projects on resume.
I applied via Campus Placement and was interviewed before Sep 2021. There were 3 interview rounds.
It was from college placement, basic question such as relative velocity, ratio and proportion, unitary method and 2 programmin question
Don't remember it was 2 years ago
Switch case is used for multiple conditions while if else is for binary conditions. Sorting can be done using various algorithms.
Switch case is faster than if else for multiple conditions
If else is more readable for binary conditions
Sorting can be done using bubble sort, insertion sort, quick sort, etc.
Example code for bubble sort: for(i=0;i
Difference between compiler and interpreter with a coding challenge
Compiler translates the entire code into machine language before execution while interpreter translates line by line during execution
Compiler generates an executable file while interpreter does not
Compiler is faster but debugging is harder while interpreter is slower but debugging is easier
Coding challenge: Write a program to find the sum of two numbers...
I applied via Naukri.com and was interviewed before Sep 2019. There were 6 interview rounds.
based on 5 interview experiences
Difficulty level
Duration
based on 4 reviews
Rating in categories
Senior Software Engineer
4.9k
salaries
| ₹6.2 L/yr - ₹23.1 L/yr |
Technical Analyst
2.8k
salaries
| ₹17.7 L/yr - ₹32 L/yr |
Software Engineer
2.2k
salaries
| ₹3.5 L/yr - ₹8 L/yr |
Senior Test Engineer
1.8k
salaries
| ₹5.5 L/yr - ₹17.1 L/yr |
Technology Specialist
1.3k
salaries
| ₹21.9 L/yr - ₹39 L/yr |
Capgemini
Cognizant
Accenture
Infosys