Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by CitiusTech Team. If you also belong to the team, you can get access from here

CitiusTech Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

CitiusTech Java Developer Interview Questions and Answers

Updated 9 Jan 2025

9 Interview questions

A Java Developer was asked 6mo ago
Q. What is the Context API in React?
Ans. 

Context API in React is a way to pass data through the component tree without having to pass props down manually at every level.

  • Context API provides a way to share values like themes, user data, etc. across the component tree without having to pass props down manually.

  • It consists of three main parts: Provider, Consumer, and useContext hook.

  • Provider component allows the data to be passed down to the tree, Consumer ...

A Java Developer was asked 6mo ago
Q. What is Redux in React?
Ans. 

Redux is a predictable state container for JavaScript apps, commonly used with React for managing application state.

  • Redux helps manage the state of an application in a predictable way

  • It provides a single source of truth for the state of the application

  • Actions are dispatched to update the state in a predictable manner

  • Reducers specify how the state changes in response to actions

  • Redux is commonly used with React to m...

Java Developer Interview Questions Asked at Other Companies

asked in Deloitte
Q1. Sort 0 and 1 Problem Statement Given an integer array ARR of size ... read more
Q2. Parent class has run() and walk(). Parent run() calls walk(). Chi ... read more
asked in Infosys
Q3. Which should be preferred between String and StringBuffer when th ... read more
Q4. How do you sort a list of students based on their first name?
asked in Cognizant
Q5. What array list and linkedlist difference,how hashmap internally ... read more
A Java Developer was asked 6mo ago
Q. Explain Spring Boot.
Ans. 

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 for easy creation of stand-alone, production-grade Spring-based applications.

  • Spring Boot includes embedded servers like Tomcat, Jetty, or Undertow, making it easy to deploy applicatio...

A Java Developer was asked 11mo ago
Q. Write a JUnit test case.
Ans. 

JUnit is a popular testing framework for Java, used to write and run repeatable tests.

  • JUnit annotations: Use @Test to indicate a test method.

  • Assertions: Use assertEquals(expected, actual) to verify outcomes.

  • Setup and teardown: Use @Before and @After for setup and cleanup tasks.

  • Parameterized tests: Use @RunWith(Parameterized.class) for testing with multiple data sets.

  • Mocking: Use Mockito to create mock objects for ...

What people are saying about CitiusTech

View All
safecobia
Verified Icon
1d
currently not working
Salary Negotiation
Hello Everyone, 🔹 Role: Full Stack Developer 🔹 Experience: 4 YOE 🔹 Current CTC: ₹14.5 LPA (10% variable) 🔹 Location: Pune 🔹 Company: CitiusTech (salary discussion round scheduled) 💬 What’s the expected CTC I can quote or negotiate for? Looking for inputs from folks with similar background or who’ve been through the process recently. Thanks in advance!
Got a question about CitiusTech?
Ask anonymously on communities.
A Java Developer was asked 11mo ago
Q. How do you count duplicates from an integer array?
Ans. 

Count duplicates in an int array

  • Create a HashMap to store the count of each element in the array

  • Iterate through the array and update the count in the HashMap

  • Count the elements with count greater than 1 as duplicates

A Java Developer was asked
Q. What are the advantages of multithreading in Java?
Ans. 

Multithreading in Java allows for concurrent execution of multiple tasks, improving performance and responsiveness.

  • 1. Improved performance by utilizing multiple CPU cores efficiently.

  • 2. Enhanced responsiveness as tasks can run concurrently without blocking each other.

  • 3. Simplified coding for complex tasks by breaking them into smaller threads.

  • 4. Facilitates better resource utilization and scalability.

  • 5. Examples: ...

A Java Developer was asked
Q. What is the difference between Comparable and Comparator in Java?
Ans. 

Comparable is an interface used for natural ordering, while Comparator is an interface used for custom ordering in Java.

  • Comparable interface is used to define the natural ordering of objects. It is implemented by the class whose objects are to be compared.

  • Comparator interface is used to define custom ordering of objects. It is implemented by a separate class.

  • Comparable interface has a single method, compareTo(), w...

Are these interview questions helpful?
A Java Developer was asked
Q. What is the comparison between Azure and AWS cloud service providers?
Ans. 

Azure and AWS are two major cloud service providers offering similar services but with some differences in features and pricing.

  • AWS is the oldest and most widely used cloud service provider, while Azure is catching up quickly.

  • Azure is known for its strong integration with Microsoft products and services, while AWS has a wider range of third-party integrations.

  • AWS has a larger global presence with more data centers...

A Java Developer was asked
Q. 

Word Frequency Counter

Given a string 'S' consisting of words, your task is to calculate how many times each word appears in the string. A word is a series of one or more non-space characters. In 'S', word...

Ans. 

Count the frequency of each word in a given string.

  • Split the string by spaces to get individual words.

  • Use a hashmap to store each word and its frequency.

  • Iterate through the words and update the hashmap accordingly.

  • Print out the words and their frequencies in any order.

CitiusTech Java Developer Interview Experiences

4 interviews found

Interview experience
4
Good
Difficulty level
Hard
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Recruitment Consulltant and was interviewed in Dec 2024. There was 1 interview round.

Round 1 - Technical 

(3 Questions)

  • Q1. Explain Spring Boot
  • Q2. What is Redux in React
  • Q3. What is Context API in React
Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Job Fair and was interviewed in Jul 2024. There were 2 interview rounds.

Round 1 - Technical 

(2 Questions)

  • Q1. Java 8 features
  • Q2. Junit code writing
Round 2 - HR 

(2 Questions)

  • Q1. Reason for job change
  • Q2. Past experience
  • Ans. 

    I have over 5 years of experience in Java development, focusing on building scalable applications and optimizing performance.

    • Developed a microservices architecture for an e-commerce platform, improving scalability and maintainability.

    • Implemented RESTful APIs using Spring Boot, enhancing integration with third-party services.

    • Led a team of 4 developers in migrating legacy systems to Java 11, resulting in a 30% performanc...

  • Answered by AI

Java Developer Interview Questions & Answers

user image Ashwini Salunke

posted on 1 Aug 2024

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(1 Question)

  • Q1. Count duplicate from int array

Skills evaluated in this interview

I appeared for an interview in Dec 2021.

Round 1 - Video Call 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Easy

This was a technical round with questions on Coding and core java based questions.

  • Q1. 

    Word Frequency Counter

    Given a string 'S' consisting of words, your task is to calculate how many times each word appears in the string. A word is a series of one or more non-space characters. In 'S', wor...

  • Ans. 

    Count the frequency of each word in a given string.

    • Split the string by spaces to get individual words.

    • Use a hashmap to store each word and its frequency.

    • Iterate through the words and update the hashmap accordingly.

    • Print out the words and their frequencies in any order.

  • Answered by AI
  • Q2. What is the difference between Comparable and Comparator in Java?
  • Ans. 

    Comparable is an interface used for natural ordering, while Comparator is an interface used for custom ordering in Java.

    • Comparable interface is used to define the natural ordering of objects. It is implemented by the class whose objects are to be compared.

    • Comparator interface is used to define custom ordering of objects. It is implemented by a separate class.

    • Comparable interface has a single method, compareTo(), which ...

  • Answered by AI
Round 2 - Video Call 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Easy

This was a technical + managerial round.

  • Q1. What are the advantages of multithreading in Java?
  • Ans. 

    Multithreading in Java allows for concurrent execution of multiple tasks, improving performance and responsiveness.

    • 1. Improved performance by utilizing multiple CPU cores efficiently.

    • 2. Enhanced responsiveness as tasks can run concurrently without blocking each other.

    • 3. Simplified coding for complex tasks by breaking them into smaller threads.

    • 4. Facilitates better resource utilization and scalability.

    • 5. Examples: paral...

  • Answered by AI
  • Q2. What is the comparison between Azure and AWS cloud service providers?
  • Ans. 

    Azure and AWS are two major cloud service providers offering similar services but with some differences in features and pricing.

    • AWS is the oldest and most widely used cloud service provider, while Azure is catching up quickly.

    • Azure is known for its strong integration with Microsoft products and services, while AWS has a wider range of third-party integrations.

    • AWS has a larger global presence with more data centers worl...

  • Answered by AI
Round 3 - HR 

Round duration - 30 minutes
Round difficulty - Easy

This was a typical HR round.

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPACitiustech interview preparation:Topics to prepare for the interview - Java, Cloud Computing, Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 4 monthsInterview preparation tips for other job seekers

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.

Application resume tips for other job seekers

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.

Final outcome of the interviewSelected

Skills evaluated in this interview

Interview questions from similar companies

I appeared for an interview before Mar 2021.

Round 1 - Coding Test 

(3 Questions)

Round duration - 60 minutes
Round difficulty - Medium

21 students were shortlisted from the 1st MCQ round and in this round we were asked to write the codes (function only) of 3 questions in 1 hour time.

  • Q1. 

    Rotting Oranges Problem Statement

    You are given a grid containing oranges where each cell of the grid can contain one of the three integer values:

    • 0 - representing an empty cell
    • 1 - representing a fre...
  • Ans. 

    Find the minimum time required to rot all fresh oranges in a grid.

    • Use Breadth First Search (BFS) to simulate the rotting process

    • Track the time taken to rot all oranges and return -1 if any fresh oranges remain

    • Handle edge cases like no fresh oranges or all oranges already rotten

    • Consider using a queue to efficiently process adjacent oranges

  • Answered by AI
  • Q2. 

    Majority Element Problem Statement

    Given an array/list 'ARR' consisting of 'N' integers, your task is to find the majority element in the array. If there is no majority element present, return -1.

    Exampl...

  • Ans. 

    Find the majority element in an array, return -1 if no majority element exists.

    • Iterate through the array and keep track of the count of each element using a hashmap.

    • Check if any element's count is greater than floor(N/2) to determine the majority element.

    • Return the majority element or -1 if no majority element exists.

  • Answered by AI
  • Q3. 

    Maximum Path Sum Between Two Leaves Problem Description

    You are provided with a non-empty binary tree in which each node contains a non-negative integer value. Your task is to find and return the maximum ...

  • Ans. 

    Find the maximum path sum between two leaf nodes in a binary tree.

    • Traverse the tree to find the maximum path sum between two leaf nodes.

    • Keep track of the maximum sum found so far.

    • Consider all possible paths between leaf nodes.

    • Handle cases where the tree has only a single leaf node.

    • Implement a recursive function to calculate the maximum path sum.

  • Answered by AI
Round 2 - Face to Face 

(3 Questions)

Round duration - 60 minutes
Round difficulty - Medium

This was a technical round with DSA based questions.

  • Q1. 

    N-th Node From The End Problem Statement

    You are given a Singly Linked List of integers. The task is to find the N-th node from the end of the list.

    Example:

    Input:
    If the given list is (1 -> -2 -&g...
  • Ans. 

    Find the N-th node from the end of a Singly Linked List of integers.

    • Traverse the list to find the length L of the list.

    • Calculate the position of the N-th node from the beginning as L - N + 1.

    • Traverse the list again to reach the calculated position and return the node's value.

  • Answered by AI
  • Q2. 

    LCA of Binary Tree Problem Statement

    You are given a binary tree consisting of distinct integers and two nodes, X and Y. Your task is to find and return the Lowest Common Ancestor (LCA) of these two nodes...

  • Ans. 

    Find the Lowest Common Ancestor (LCA) of two nodes in a binary tree.

    • Traverse the binary tree to find the paths from the root to nodes X and Y.

    • Compare the paths to find the last common node, which is the LCA.

    • Handle cases where one node is an ancestor of the other or when one node is the LCA itself.

  • Answered by AI
  • Q3. 

    Reverse Words in a String: Problem Statement

    You are given a string of length N. Your task is to reverse the string word by word. The input may contain multiple spaces between words and may have leading o...

  • Ans. 

    Reverse words in a string while handling leading/trailing spaces and multiple spaces between words.

    • Split the input string by spaces to get individual words

    • Reverse the list of words

    • Join the reversed words with a single space in between

    • Handle leading/trailing spaces by stripping them before and after reversing

  • Answered by AI
Round 3 - Face to Face 

(3 Questions)

Round duration - 60 minutes
Round difficulty - Easy

Technical Interview round with questions based on DSA

  • Q1. 

    Minimum Time To Solve The Problems

    Given 'N' subjects, each containing a certain number of problems, and 'K' friends, assign subjects to friends such that each subject goes to exactly one friend, maintain...

  • Ans. 

    Assign subjects to friends to minimize maximum workload, find minimum time for most loaded friend.

    • Sort subjects in descending order

    • Assign subjects to friends one by one until all subjects are assigned

    • The maximum workload will be the sum of problems assigned to the friend with the most problems

    • Return the maximum workload as the minimum time required

  • Answered by AI
  • Q2. What is grammar in the context of compiler design?
  • Ans. 

    Grammar in compiler design defines the syntax and structure of a programming language.

    • Grammar specifies the rules for forming valid statements in a programming language.

    • It consists of a set of production rules that define how valid programs can be constructed.

    • There are different types of grammars such as context-free grammar, regular grammar, etc.

    • Example: In C programming language, the grammar specifies that a for loop...

  • Answered by AI
  • Q3. What is a token in compiler design?
  • Ans. 

    A token in compiler design is a basic unit of syntax that the compiler can understand and process.

    • Tokens are the smallest units of a program that are meaningful to the compiler.

    • Examples of tokens include keywords, identifiers, operators, and punctuation symbols.

    • Tokens are generated by the lexical analysis phase of the compiler.

    • Tokens are used by the parser to build the abstract syntax tree of the program.

  • Answered by AI
Round 4 - Video Call 

(3 Questions)

Round duration - 60 minutes
Round difficulty - Easy

Technical round with questions on DSA and Compiler Design mainly. He told me that you’ll be having your final HR round in some time. I knew that I was going well because he seemed to be quite satisfied with my answers.

  • Q1. 

    Sum Root to Leaf Numbers

    You are given an arbitrary binary tree consisting of N nodes, each associated with an integer value from 1 to 9. Each root-to-leaf path can be considered a number formed by concat...

  • Ans. 

    Find the total sum of all root to leaf paths in a binary tree formed by concatenating node values.

    • Traverse the binary tree from root to leaf nodes, keeping track of the current path sum

    • Add the current path sum to the total sum when reaching a leaf node

    • Use modulo (10^9 + 7) to handle large outputs

  • Answered by AI
  • Q2. What is a regular language?
  • Ans. 

    A regular language is a language that can be recognized by a finite automaton.

    • Regular languages can be described by regular expressions.

    • Regular languages are closed under union, concatenation, and Kleene star operations.

    • Examples of regular languages include the set of all strings over an alphabet that contain an even number of 'a's.

  • Answered by AI
  • Q3. What are NP and NP-Hard problems?
  • Ans. 

    NP problems are decision problems that can be verified in polynomial time, while NP-Hard problems are at least as hard as the hardest problems in NP.

    • NP problems can be verified in polynomial time but not necessarily solved in polynomial time.

    • NP-Hard problems are at least as hard as the hardest problems in NP, but may not be in NP themselves.

    • Examples of NP problems include the subset sum problem and the traveling salesm...

  • Answered by AI
Round 5 - HR 

Round duration - 30 minutes
Round difficulty - Easy

That was the round for which I’ve been waiting for hours 
She was very friendly and nice to talk to. It didn’t seem that I was talking to the HR. It was more like talking to a friend. Finally we discussed about the pay-scale and work culture in Accolite.

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPAAccolite Digital Pvt Ltd interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 6 monthsInterview preparation tips for other job seekers

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.

Application resume tips for other job seekers

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.

Final outcome of the interviewSelected

Skills evaluated in this interview

I appeared for an interview before Mar 2016.

Interview Preparation Tips

Round: Test
Experience: 1. output of simple static variable programs
2. hashmap program
3. spring annotations
4.wrapper classes
5. validation script for email
Tips: go through the basics
Total Questions: 6

Interview Questionnaire 

1 Question

  • Q1. Exam was conducted on programmes. 10 questions were asked
Are these interview questions helpful?

Interview Questionnaire 

1 Question

  • Q1. Interview questions on .net technology

I applied via Approached by Company and was interviewed before Mar 2021. There were 4 interview rounds.

Round 1 - Assignment 
Round 2 - Coding Test 

DSA

Round 3 - Group Discussion 

About Social changes

Round 4 - HR 

(2 Questions)

  • Q1. Tell me about yourself.
  • Q2. Very basic questions

Interview Preparation Tips

Topics to prepare for ThoughtWorks Software Developer interview:
  • DSA
Interview preparation tips for other job seekers - Prepare DSA well and be well with Hands-on in coding

I appeared for an interview before Sep 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 90 minutes
Round difficulty - Medium

We were supposed to give test in any time between 3 PM to 9 PM.

  • Q1. 

    Total Unique Paths Problem Statement

    You are located at point ‘A’, the top-left corner of an M x N matrix, and your target is point ‘B’, the bottom-right corner of the same matrix. Your task is to calcula...

  • Ans. 

    The problem involves finding the total number of unique paths from the top-left to bottom-right cell of a matrix by moving only right or down.

    • Use dynamic programming to solve the problem efficiently.

    • Create a 2D array to store the number of unique paths at each cell.

    • Initialize the first row and first column with 1 as there is only one way to reach them.

    • For each cell (i, j), the number of unique paths is the sum of paths...

  • Answered by AI
  • Q2. 

    Subtree Node Count Problem

    We are provided with a tree containing 'N' nodes, numbered from 0 to N-1. The objective is to determine the total number of nodes within each subtree of the provided tree. Speci...

  • Ans. 

    Given a tree with N nodes, find the number of elements in each subtree rooted at every node.

    • Traverse the tree using Depth First Search (DFS) to calculate subtree sizes for each node.

    • Use an array to store subtree sizes for each node, starting with leaf nodes having size 1.

    • The subtree size of a node is the sum of subtree sizes of its children plus 1 for the node itself.

  • Answered by AI
Round 2 - Face to Face 

(1 Question)

Round duration - 120 minutes
Round difficulty - Medium

Pair Programming Interview( this round is similar to machine coding round) it started around 11 AM

Focus Areas: Problem solving and implementation of extensions.

The pair coding round is focused on OOPS concepts. You are paired with a TWer for this round. They let you code first for an hour and in the next hour they review your code and suggest changes which would improve the code structure, readability and make it modular and reusable and functional.
 

  • Q1. 

    River Crossing: Help Ninja Cross Over

    Ninja stands at the start of a wooden bridge over a river. Some segments of the bridge are damaged. The undamaged segments, marked as 'safe', are listed in an array S...

  • Ans. 

    Check if Ninja can cross the river by jumping from one safe segment to another based on given constraints.

    • Iterate through the 'SAFE' array and check if Ninja can make the required jumps to reach the last safe segment.

    • Ensure that the next jump is either 'X' - 1, 'X', or 'X' + 1 units from the previous jump.

    • Return 'true' if Ninja can successfully cross the river, otherwise return 'false'.

  • Answered by AI
Round 3 - Face to Face 

(1 Question)

Round duration - 120 minutes
Round difficulty - Medium

Students who were shortlisted from Pair Programming round was selected for this round around 3 PM. In this round there were two interviewer.

  • Q1. 

    Middle of a Linked List

    You are given the head node of a singly linked list. Your task is to return a pointer pointing to the middle of the linked list.

    If there is an odd number of elements, return the ...

  • Ans. 

    Return the middle element of a singly linked list, or the one farther from the head if there are even elements.

    • Traverse the linked list with two pointers, one moving twice as fast as the other

    • When the fast pointer reaches the end, the slow pointer will be at the middle

    • Return the element pointed to by the slow pointer

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - 1 in GurgaonEligibility criteriaIt was for 2020 undergraduateThought Works interview preparation:Topics to prepare for the interview - Object Oriented Programming, System Design, Operating System, DBMS, Data Structures and Algorithms (Dynamic Programming, Trees, LinkedList)Time required to prepare for the interview - 3 MonthsInterview preparation tips for other job seekers

Tip 1 : Have good grasp on OOPS since they have a round named Pair Programming round which is focused upon this. 
Tip 2 : Write clean, modular and functional code.
Tip 3 : Practice Data Structures and Algorithms
Tip 4 : You should know breadth and depth of whatever is mentioned in your resume.
Tip 5 : Be loud and clear.

Application resume tips for other job seekers

Tip 1 : Make single page resume.
Tip 2 : Mention relevant things on resume.
Tip 3 : Do not put any false things on resume. Projects, internships you are mentioning be ready to answer questions related to it regarding what you solved, idea, databases, design.
Tip 4 : Contribute in open source, participate in hackathons.

Final outcome of the interviewSelected

Skills evaluated in this interview

CitiusTech Interview FAQs

How many rounds are there in CitiusTech Java Developer interview?
CitiusTech interview process usually has 1-2 rounds. The most common rounds in the CitiusTech interview process are Technical and HR.
How to prepare for CitiusTech Java Developer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at CitiusTech. The most common topics and skills that interviewers at CitiusTech expect are Java, Web Services, Spring Boot, Microservices and J2Ee.
What are the top questions asked in CitiusTech Java Developer interview?

Some of the top questions asked at the CitiusTech Java Developer interview -

  1. What is Context API in Re...read more
  2. What is Redux in Re...read more
  3. Count duplicate from int ar...read more

Tell us how to improve this page.

Overall Interview Experience Rating

3/5

based on 5 interview experiences

Difficulty level

Easy 67%
Hard 33%

Duration

Less than 2 weeks 100%
View more
CitiusTech Java Developer Salary
based on 52 salaries
₹3 L/yr - ₹7.6 L/yr
24% less than the average Java Developer Salary in India
View more details

CitiusTech Java Developer Reviews and Ratings

based on 5 reviews

3.1/5

Rating in categories

3.0

Skill development

3.2

Work-life balance

3.0

Salary

2.9

Job security

3.1

Company culture

2.5

Promotions

3.2

Work satisfaction

Explore 5 Reviews and Ratings
Senior Software Engineer
2.7k salaries
unlock blur

₹8.4 L/yr - ₹15.8 L/yr

Technical Lead
2.1k salaries
unlock blur

₹12.2 L/yr - ₹21.9 L/yr

Software Engineer
1.3k salaries
unlock blur

₹4.2 L/yr - ₹9.2 L/yr

Technical Lead 1
407 salaries
unlock blur

₹11.9 L/yr - ₹21.5 L/yr

Technical Lead 2
347 salaries
unlock blur

₹14.1 L/yr - ₹25.8 L/yr

Explore more salaries
Compare CitiusTech with

Accenture

3.7
Compare

Capgemini

3.7
Compare

Xoriant

4.1
Compare

HTC Global Services

3.5
Compare
write
Share an Interview