i
Hexaware Technologies
Filter interviews by
I applied via Naukri.com and was interviewed in May 2024. There was 1 interview round.
A Java program to check if a number is prime or not.
Create a function to check if a number is prime by iterating from 2 to the square root of the number.
If the number is divisible by any number in that range, it is not prime.
Handle edge cases like 0, 1, and negative numbers separately.
Example: public static boolean isPrime(int num) { for(int i=2; i<=Math.sqrt(num); i++) { if(num % i == 0) { return false; } } return tru
Program to determine if a given year is a leap year or not
Check if the year is divisible by 4
If the year is divisible by 100, also check if it is divisible by 400
If both conditions are met, it is a leap year
I used OOPS concepts in my framework for creating reusable components and maintaining code modularity.
Used inheritance to create a base class with common functionalities shared by multiple classes
Implemented polymorphism to allow different classes to implement the same method in their own way
Encapsulated data and behavior within classes using access modifiers like private and public
Utilized abstraction to hide the impl...
Java program to add numbers 6134 to get total 14.
Create an array of integers with the numbers to be added
Iterate through the array and add the numbers
Check if the total equals 14
What people are saying about Hexaware Technologies
Remove duplicate objects from an array of multiple objects.
Create a new array to store unique objects
Loop through the original array and check if the object already exists in the new array
If not, add it to the new array
Return the new array
Maintain state by using a global variable or a state management system.
Use a global variable to store the state and access it whenever needed.
Use a state management system like Redux or MobX to manage the state.
Avoid using local variables or closures to store state as they will be lost when the code is repeated.
Consider using object-oriented programming principles to encapsulate state within objects.
Use functional prog...
Design patterns are reusable solutions to common software problems. Android system uses various design patterns.
MVC (Model-View-Controller) pattern is used in Android to separate UI logic from business logic.
Singleton pattern is used to ensure only one instance of a class is created.
Observer pattern is used to notify changes in data to multiple components.
Builder pattern is used to simplify complex object creation.
Adap...
posted on 5 Feb 2021
I applied via Recruitment Consulltant and was interviewed before Jul 2021. There were 3 interview rounds.
I applied via Campus Placement and was interviewed in May 2020. There were 6 interview rounds.
I applied via Campus Placement and was interviewed before Nov 2020. There were 3 interview rounds.
based on 1 interview
Interview experience
Senior Software Engineer
3.8k
salaries
| ₹5.5 L/yr - ₹20.1 L/yr |
Software Engineer
3k
salaries
| ₹2 L/yr - ₹10 L/yr |
System Analyst
2.9k
salaries
| ₹7.7 L/yr - ₹29 L/yr |
Technical Architect
2.1k
salaries
| ₹10 L/yr - ₹38 L/yr |
Senior Executive
1.9k
salaries
| ₹0.8 L/yr - ₹6 L/yr |
Cognizant
TCS
DXC Technology
Mphasis