
Hexaware Technologies

10+ Hexaware Technologies Software Developer Interview Questions and Answers
Q1. Graph Coloring Problem
You are given a graph with 'N' vertices numbered from '1' to 'N' and 'M' edges. Your task is to color this graph using two colors, such as blue and red, in a way that no two adjacent vert...read more
Graph coloring problem where vertices need to be colored with two colors such that no adjacent vertices share the same color.
Check if the graph can be colored using two colors without any adjacent vertices sharing the same color.
Use graph coloring algorithms like Greedy Coloring or Backtracking to solve the problem.
If there are odd-length cycles in the graph, it is not possible to color the graph with two colors.
If the graph is bipartite, it is always possible to color it wit...read more
Q2. Ninja Competition Problem Statement
Ninja is organizing a coding competition where two teams compete at a time. To keep it fair and interesting, both teams must have an equal number of members. Ninja’s task is ...read more
Given an integer N, determine if two teams with equal members can be formed based on the divisors of N.
Iterate through all divisors of N and assign members to two teams based on whether the divisor is even or odd.
Keep track of the number of members in each team and check if they are equal at the end.
Return true if the number of members in both teams is equal, false otherwise.
Q3. Rat in a Maze: All Paths Problem
You are provided with an N * N
maze where a rat is positioned at starting cell MAZE[0][0]
. The goal is to determine and print all possible paths that the rat can take to reach i...read more
Find all possible paths for a rat in a maze from start to finish.
Use backtracking to explore all possible paths in the maze.
At each cell, check if it is a valid move and mark it as part of the path.
Explore all four directions (up, down, left, right) recursively.
When reaching the destination cell, add the path to the result.
Return all valid paths found in the maze.
BJTs are three-terminal semiconductor devices used for amplification and switching of electronic signals.
BJTs have three regions - emitter, base, and collector.
They can be NPN or PNP type, depending on the arrangement of semiconductor materials.
BJTs are current-controlled devices, where a small current at the base terminal controls a much larger current between the collector and emitter.
Common BJT examples include 2N2222 (NPN) and BC557 (PNP).
Stacks are data structures that follow the Last In First Out (LIFO) principle, while Graphs are data structures that consist of nodes and edges to represent relationships.
Stacks are used for implementing functions, backtracking, and expression evaluation.
Graphs are used for representing networks, social connections, and shortest path algorithms.
Stacks can be implemented using arrays or linked lists.
Graphs can be directed or undirected, weighted or unweighted.
Examples of stack...read more
Q6. Abstract Class vs Interface. How do you choose b/w this?
Abstract classes are used when we want to provide a default implementation, while interfaces are used when we want to enforce a contract.
Abstract classes can have constructors, while interfaces cannot
A class can implement multiple interfaces, but can only inherit from one abstract class
Interfaces are used for loose coupling and flexibility in design
Abstract classes are used for code reusability and to provide a common base for related classes
Example: An abstract class 'Animal...read more
Q7. What is difference between delete and truncate query
Delete removes rows one by one, while truncate removes all rows at once.
Delete is a DML command, while truncate is a DDL command
Delete can be rolled back, while truncate cannot be rolled back
Delete fires triggers, while truncate does not fire triggers
Q8. What is the use of Timber
Timber is a logging library for Android development.
Used for logging messages in Android applications
Helps in debugging and monitoring the app's behavior
Provides different log levels like DEBUG, INFO, ERROR, etc.
Can be customized to log specific information or filter out certain logs
Q9. Write a program of bubble sort.
Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order.
Initialize an array of strings to be sorted
Repeat until no swaps are needed: Compare adjacent elements and swap if necessary
Continue until the entire array is sorted
Q10. why java is used?
Java is used for its platform independence, object-oriented programming, robustness, and large community support.
Platform independence allows Java programs to run on any device with a Java Virtual Machine (JVM)
Object-oriented programming allows for modular and reusable code
Robustness with features like automatic memory management and exception handling
Large community support with extensive libraries and frameworks available
Examples: Android apps, enterprise applications, web ...read more
Q11. what is spring boot?
Spring Boot is a framework that simplifies the development of Java applications by providing pre-configured settings and tools.
Spring Boot eliminates the need for manual configuration by providing defaults for most settings.
It allows developers to create stand-alone, production-grade Spring-based applications with minimal effort.
Spring Boot includes embedded servers like Tomcat, Jetty, or Undertow, making it easy to deploy applications.
It offers a wide range of plugins and ex...read more
Top HR Questions asked in Hexaware Technologies Software Developer
Interview Process at Hexaware Technologies Software Developer

Top Software Developer Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

