Upload Button Icon Add office photos
Engaged Employer

i

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

DXC Technology Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

DXC Technology Senior Java Developer Interview Questions and Answers for Experienced

Updated 28 Aug 2023

8 Interview questions

A Senior Java Developer was asked
Q. Describe the different types of JVM memory.
Ans. 

JVM memory consists of Young Generation, Old Generation, and Permanent Generation.

  • Young Generation: where new objects are allocated and aged before moving to Old Generation.

  • Old Generation: where long-lived objects are stored.

  • Permanent Generation: where metadata such as class definitions and method information are stored.

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

Comparable is an interface used for natural ordering of objects, while Comparator is an interface used for custom ordering of objects.

  • Comparable interface is implemented by the class whose objects are to be compared, while Comparator interface is implemented by a separate class.

  • Comparable interface has a single method compareTo() for comparing objects, while Comparator interface has a single method compare() for c...

Senior Java Developer Interview Questions Asked at Other Companies for Experienced

asked in Caspex Corp
Q1. How would you configure Jenkins or GitLab's CICD pipelines to tri ... read more
asked in Caspex Corp
Q2. Suppose your task is optimizing a Java application that handles a ... read more
asked in Caspex Corp
Q3. Suppose the organization has a legacy system written in a differe ... read more
asked in Caspex Corp
Q4. Suppose your task is to design a highly available and scalable da ... read more
asked in Caspex Corp
Q5. Suppose your microservice exposes an API that requires authentica ... read more
A Senior Java Developer was asked
Q. What are the differences between an interface and an abstract class?
Ans. 

Interface is a contract with no implementation, while abstract class can have some implementation.

  • Interface cannot have any method implementation, while abstract class can have some method implementations.

  • A class can implement multiple interfaces, but can only extend one abstract class.

  • Interfaces are used to achieve multiple inheritance in Java.

  • Abstract classes can have constructors, while interfaces cannot.

  • Exampl...

A Senior Java Developer was asked
Q. What is the difference between HashMap and ConcurrentHashMap?
Ans. 

HashMap is not thread-safe while ConcurrentHashMap is thread-safe.

  • HashMap is not thread-safe and can lead to ConcurrentModificationException if modified during iteration.

  • ConcurrentHashMap allows concurrent read and write operations without the need for external synchronization.

  • ConcurrentHashMap achieves thread-safety by dividing the map into segments, allowing multiple threads to operate on different segments conc...

What people are saying about DXC Technology

View All
carefulmatcha
Verified Icon
5d
works at
Cognizant
DXC or HCL for Mainframe Dev? Help me decide!
Hey everyone ๐Ÿ‘‹ Iโ€™m at a crossroads with offers from HCLTech and DXC for a Mainframe Developer role. Iโ€™ve got 3.7 years in COBOL, DB2, JCL, VSAM, and IMS, and Iโ€™m aiming for technical growth, solid projects, and leadership potential. ๐Ÿ‘‰ I want to sharpen my IMS and VSAM skills, build a strong career, and move into tech leadership. If youโ€™re at either company (especially in mainframe), your insights would be awesome! Which place is best for learning, recognition, and long-term stability? Thanks a bunch! ๐Ÿ™
Got a question about DXC Technology?
Ask anonymously on communities.
A Senior Java Developer was asked
Q. In which situation do we use @Primary and @Qualifier?
Ans. 

Use @Primary to specify a primary bean when multiple beans of the same type are present. Use @Qualifier to specify a specific bean when multiple beans of the same type are present.

  • Use @Primary to indicate the primary bean to be used when multiple beans of the same type are present in the Spring application context.

  • Use @Qualifier along with @Autowired to specify a specific bean to be injected when multiple beans of...

A Senior Java Developer was asked
Q. What is the difference between a Collection and a Stream in Java?
Ans. 

Collections store data while streams process data in a functional way.

  • Collections are used to store and manage groups of objects, while streams are used to process collections of objects.

  • Collections are mutable, meaning you can add, remove, or modify elements, while streams are immutable and do not change the original data.

  • Streams use functional programming concepts like map, filter, and reduce to process data eff...

A Senior Java Developer was asked
Q. What is the difference between composition and aggregation?
Ans. 

Composition is a strong relationship where the child object cannot exist independently of the parent object, while aggregation is a weak relationship where the child object can exist independently.

  • Composition is a 'has-a' relationship, where the child object is a part of the parent object.

  • Aggregation is a 'has-a' relationship, where the child object is not a part of the parent object.

  • In composition, the child obje...

Are these interview questions helpful?
A Senior Java Developer was asked
Q. HOW TO CREATE OUR OWN IMMUTABLE CLASS? WHY IMMUTABLE CLASS
Ans. 

Immutable classes in Java are classes whose objects cannot be modified once they are created.

  • Make the class final to prevent inheritance

  • Make all fields private and final

  • Do not provide setter methods for fields

  • Ensure that any mutable objects within the class are also immutable

DXC Technology Senior Java Developer Interview Experiences for Experienced

1 interview found

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected
Round 1 - Resume Shortlistย 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Technicalย 

(8 Questions)

  • Q1. DESCRIBE TYPES JVM MEMORY.
  • Ans. 

    JVM memory consists of Young Generation, Old Generation, and Permanent Generation.

    • Young Generation: where new objects are allocated and aged before moving to Old Generation.

    • Old Generation: where long-lived objects are stored.

    • Permanent Generation: where metadata such as class definitions and method information are stored.

  • Answered by AI
  • Q2. DIFFERENCE BETWEEN INTERFACE AND ABSTRACT CLASS.
  • Ans. 

    Interface is a contract with no implementation, while abstract class can have some implementation.

    • Interface cannot have any method implementation, while abstract class can have some method implementations.

    • A class can implement multiple interfaces, but can only extend one abstract class.

    • Interfaces are used to achieve multiple inheritance in Java.

    • Abstract classes can have constructors, while interfaces cannot.

    • Example: In...

  • Answered by AI
  • Q3. HOW TO CREATE OUR OWN IMMUTABLE CLASS? WHY IMMUTABLE CLASS
  • Ans. 

    Immutable classes in Java are classes whose objects cannot be modified once they are created.

    • Make the class final to prevent inheritance

    • Make all fields private and final

    • Do not provide setter methods for fields

    • Ensure that any mutable objects within the class are also immutable

  • Answered by AI
  • Q4. WHAT IS DIFFERENCE BETWEEN COMPOSITION AND AGGREGATION ?
  • Ans. 

    Composition is a strong relationship where the child object cannot exist independently of the parent object, while aggregation is a weak relationship where the child object can exist independently.

    • Composition is a 'has-a' relationship, where the child object is a part of the parent object.

    • Aggregation is a 'has-a' relationship, where the child object is not a part of the parent object.

    • In composition, the child object is...

  • Answered by AI
  • Q5. DIFFERENCE BETWEEN COMPARABLE AND COMPARATOR.
  • Ans. 

    Comparable is an interface used for natural ordering of objects, while Comparator is an interface used for custom ordering of objects.

    • Comparable interface is implemented by the class whose objects are to be compared, while Comparator interface is implemented by a separate class.

    • Comparable interface has a single method compareTo() for comparing objects, while Comparator interface has a single method compare() for custom...

  • Answered by AI
  • Q6. DIFFERENCE BETWEEN HASHMAP AND CONCURRENTHASH MAP
  • Ans. 

    HashMap is not thread-safe while ConcurrentHashMap is thread-safe.

    • HashMap is not thread-safe and can lead to ConcurrentModificationException if modified during iteration.

    • ConcurrentHashMap allows concurrent read and write operations without the need for external synchronization.

    • ConcurrentHashMap achieves thread-safety by dividing the map into segments, allowing multiple threads to operate on different segments concurren...

  • Answered by AI
  • Q7. DIFFERENCE BETWEEN COLLECTION AND STREAM
  • Ans. 

    Collections store data while streams process data in a functional way.

    • Collections are used to store and manage groups of objects, while streams are used to process collections of objects.

    • Collections are mutable, meaning you can add, remove, or modify elements, while streams are immutable and do not change the original data.

    • Streams use functional programming concepts like map, filter, and reduce to process data efficien...

  • Answered by AI
  • Q8. IN WHICH SITUATION WE USE @PRIMARY AND @ QUALIFIER ?
  • Ans. 

    Use @Primary to specify a primary bean when multiple beans of the same type are present. Use @Qualifier to specify a specific bean when multiple beans of the same type are present.

    • Use @Primary to indicate the primary bean to be used when multiple beans of the same type are present in the Spring application context.

    • Use @Qualifier along with @Autowired to specify a specific bean to be injected when multiple beans of the ...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Everyone should focus on core java and java 1.8.
Spring boot and microservices

Skills evaluated in this interview

Interview questions from similar companies

I applied via LinkedIn and was interviewed before Jul 2021.ย There were 2 interview rounds.

Round 1 - Aptitude Testย 

Easy logical questions
basic quant

Round 2 - Coding Testย 

Easy level coding questions
Counting frequency of alphabets

Interview Preparation Tips

Interview preparation tips for other job seekers - Just go through the basics of javascript
Hoisting

Senior Java Developer Interview Questions Asked at Other Companies for Experienced

asked in Caspex Corp
Q1. How would you configure Jenkins or GitLab's CICD pipelines to tri ... read more
asked in Caspex Corp
Q2. Suppose your task is optimizing a Java application that handles a ... read more
asked in Caspex Corp
Q3. Suppose the organization has a legacy system written in a differe ... read more
asked in Caspex Corp
Q4. Suppose your task is to design a highly available and scalable da ... read more
asked in Caspex Corp
Q5. Suppose your microservice exposes an API that requires authentica ... read more

Interview Questionnaireย 

1 Question

  • Q1. How to use multiple dispatch in redux?
  • Ans. 

    Multiple dispatch is not a feature of Redux. It can be achieved using middleware or custom logic.

    • Middleware like redux-thunk or redux-saga can be used to dispatch multiple actions based on a single action.

    • Custom logic can be implemented in the reducer to handle multiple actions based on a single action type.

    • For example, a single 'ADD_ITEM' action can trigger multiple actions like 'UPDATE_TOTAL', 'UPDATE_HISTORY', etc.

    • M...

  • Answered by AI

Skills evaluated in this interview

I applied via Naukri.com and was interviewed before Sep 2019.ย There were 6 interview rounds.

Interview Questionnaireย 

3 Questions

  • Q1. IQ Test
  • Q2. Machine Test
  • Q3. Face To Face

Interview Preparation Tips

Interview preparation tips for other job seekers - basically there are 3 rounds:-
1. IQ Test
2. Machine Test
3. Face to Face

IQ Test is not so tough but prepare well Machine Test
Machine Test Question are like :-
Q.1 - We declare a variable in C++ like "is_this_a_variable" and in Java like "IsThisAVariable". There is underscore in between every word and first alphabet of every word is in lowercase in C++ and in Java first alphabet is in capital without underscore. Create a program in which if user input a string in a C++ variable format it will convert the input in java variable format.

Q2. Count the frequency of a string.
user input string - pqhphi
output-
p - 2
q - 1
h - 2
i - 1

Be strong in algorithms and data structure.

What people are saying about DXC Technology

View All
carefulmatcha
Verified Icon
5d
works at
Cognizant
DXC or HCL for Mainframe Dev? Help me decide!
Hey everyone ๐Ÿ‘‹ Iโ€™m at a crossroads with offers from HCLTech and DXC for a Mainframe Developer role. Iโ€™ve got 3.7 years in COBOL, DB2, JCL, VSAM, and IMS, and Iโ€™m aiming for technical growth, solid projects, and leadership potential. ๐Ÿ‘‰ I want to sharpen my IMS and VSAM skills, build a strong career, and move into tech leadership. If youโ€™re at either company (especially in mainframe), your insights would be awesome! Which place is best for learning, recognition, and long-term stability? Thanks a bunch! ๐Ÿ™
Got a question about DXC Technology?
Ask anonymously on communities.

I applied via Walk-in and was interviewed before Sep 2019.ย There were 3 interview rounds.

Interview Questionnaireย 

1 Question

  • Q1. 1.Technical Ques(OOPS Concept)and 2. Area of Interest 3. About Company 4. more

Interview Preparation Tips

Interview preparation tips for other job seekers - Hello Folks,
Sharing some tips while facing Interview Assessment or GD Round Assessment.
1. Be Confident always give the answer what they ask for, Never connect your answer with different topic.
2. Always go through Company Portal or wiki about their Operation & Function.
3. Always have positive vibes that whatever yes or No, You will surely gain something.
All the Best..!!

I applied via Naukri.com and was interviewed before Apr 2020.ย There was 1 interview round.

Interview Questionnaireย 

1 Question

  • Q1. Technical questions

Interview Preparation Tips

Interview preparation tips for other job seekers - I have visited interview location on morning 7am DLF block Hyderabad. Buy my interview was taken in evening 6:45pm. That was not an interview test it was a patience test.

Interview Questionnaireย 

3 Questions

  • Q1. Tell me something about yourself
  • Ans. 

    I am a passionate software developer with 5 years of experience in developing web applications using various technologies.

    • 5 years of experience in software development

    • Proficient in developing web applications

    • Skilled in using various technologies

    • Passionate about coding and problem-solving

  • Answered by AI
  • Q2. What is the difference between encapsulation and polymorphism?
  • Q3. What do you mean by deadlock in OS?
  • Ans. 

    Deadlock is a situation in which two or more processes are unable to proceed because each is waiting for the other to release a resource.

    • Deadlock occurs when two or more processes are stuck in a circular waiting state.

    • It happens when processes compete for resources and each process holds a resource that another process needs.

    • Four necessary conditions for deadlock are mutual exclusion, hold and wait, no preemption, and ...

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: We were asked to solve a questionnaire containing 25 questions based on logical reasoning and basic mathematics. We went to the test center in their recruitment center where there were many desktops for the candidates to sit and give the test. At the entrance, they checked the letter we got from them to authenticate us.Then they gave us a login ID and password. Exactly when the test started, the portal became active and we were asked to enter the credentials. I completed the test in half the time as it was pretty easy and straightforward.
Tips: Practice simple aptitude questions for greater speed and accuracy.
Duration: 1 hour
Total Questions: 20

Round: Group Discussion
Experience: Ten candidates who were shortlisted from the written test attended the group discussion. The topic given to us was fairly simple and lucky for me, I used to work as an anchor, and being a strong feminist person, I had a lot of valid points to put forward. I was the one to start the discussion, and I felt I was the best speaker there. The topic was something that I follow regularly, yet I came across a few unique points from the other candidates.
Tips: Improve your English speaking skills. Be assertive and speak concisely.
Duration: 15 minutes

Round: HR Interview
Experience: The interview basically revolved around this one question which had a few follow-up questions, such as who all are there in my family, what are my strengths and weaknesses, and why am I fit for this job.
Tips: Be confident and honest about yourself.

Round: Technical Interview
Experience: I tried to be as calm and confident as possible during the whole of the interview

College Name: Guru Nanak Institute of Technology (GNIT)

Skills evaluated in this interview

Are these interview questions helpful?

I applied via Company Website and was interviewed in Oct 2018.ย There was 0 interview round.

Interview Preparation Tips

General Tips: This interview was a technical one but was majorly a stress test. It lasted for about 1 hour 10 minutes. The interviewer wanted to test both my knowledge and communication skills. Most of the questions asked to me were related to my B.Tech curriculum i.e. computer science related topics. He stressed a lot on the basics related to my project topic. Luckily I was able to answer most of the questions correctly. I tried to answer each question with examples and also used props on the table (like pens, paperweights, pen stands etc.) to explain my theories. It was my first offcampus interview, and I think I did pretty well for a fresher.
You need to stay calm and should apply presence of mind. Please go through the job description thoroughly word-by-word and recheck your resume to ensure that you are a best-fit for the position.
Skills: Communication, Body Language, Problem Solving, Leadership, Presentation Skills
Duration: <1 week

I appeared for an interview before Nov 2020.

Round 1 - Coding Testย 

(2 Questions)

Round duration - 90 minutes
Round difficulty - Medium

Timing was around 10am
It was quite a normal online examination kind of environment 
People from the company were there to invigilate 
All were quite nice and helpful in case the exam got stuck

  • Q1. 

    Ninja and Alien Language Order Problem

    An alien dropped its dictionary while visiting Earth. The Ninja wants to determine the order of characters used in the alien language, based on the given list of wor...

  • Ans. 

    Determine the order of characters in an alien language based on a list of words.

    • Create a graph data structure to represent the relationships between characters in the words.

    • Perform a topological sort on the graph to find the order of characters.

    • Return the smallest lexicographical order of characters as the result.

  • Answered by AI
  • Q2. 

    Check Duplicate Within K Distance

    Given an array of integers arr of size N and an integer K, determine if there are any duplicate elements within a distance of K from each other in the array. Return "true...

  • Ans. 

    Check if there are any duplicate elements within a distance of K from each other in the array.

    • Iterate through the array and keep track of the indices of elements using a hashmap.

    • For each element, check if it already exists in the hashmap within distance K.

    • Return true if a duplicate is found within distance K, otherwise return false.

  • Answered by AI
Round 2 - Face to Faceย 

(1 Question)

Round duration - 30 minutes
Round difficulty - Medium

Timing was 2pm when it started
Interviewer was polite

  • Q1. 

    Kth Largest Element Problem Statement

    Ninja enjoys working with numbers, and Alice challenges him to find the Kth largest value from a given list of numbers.

    Input:

    The first line contains an integer 'T...
  • Ans. 

    The task is to find the Kth largest element in a given list of numbers for each test case.

    • Read the number of test cases 'T'

    • For each test case, read the number of elements 'N' and the Kth largest number to find 'K'

    • Sort the array in descending order and output the Kth element

  • Answered by AI
Round 3 - HRย 

Round duration - 20 minutes
Round difficulty - Easy

Timing was 9 am onwards 
Interviewer was good enough

Interview Preparation Tips

Professional and academic backgroundI applied for the job as Software Developer in DelhiEligibility criteriaAbove 7 CGPA with no pending backlogsWipro Limited interview preparation:Topics to prepare for the interview - Java, C++, DBMS, Data Structures, Dot net, HTML, CSS, JSTime required to prepare for the interview - 6 monthsInterview preparation tips for other job seekers

Tip 1 : Focus on specialization of any one skill and keep a basic knowledge of all the skills you mention in your resume
Tip 2 : Gain confidence in presenting yourself by practicing well before
Tip 3 : Gain a basic knowledge of the company you go for selection

Application resume tips for other job seekers

Tip 1 : Resume should be simple and precise but pretty smart to cover your skills 
Tip 2 : Mention what you really know,no false things

Final outcome of the interviewRejected

Skills evaluated in this interview

I appeared for an interview before Sep 2016.

Interview Preparation Tips

Round: Group Discussion
Experience: Interview was scheduled in Grab Job consultancy. In that, a class room, where we all asked to sit and interviewer was sitting in front and asked to speak one by one on the topic traffic situation in Hyderabad.
Tips: Just speak once two to three lines. Don't rush to speak. Take ur time and don't try speak repeatedly.
Duration: 35 minutes

Round: Technical Interview
Experience: System based test. Easy question from java , c, data structure.

Round: HR Interview
Experience: Not held because already we got too late.

Skills: Proficiency In English, Basic Coding
College Name: Medak College of engineering

DXC Technology Interview FAQs

How many rounds are there in DXC Technology Senior Java Developer interview for experienced candidates?
DXC Technology interview process for experienced candidates usually has 2 rounds. The most common rounds in the DXC Technology interview process for experienced candidates are Resume Shortlist and Technical.
How to prepare for DXC Technology Senior Java Developer interview for experienced candidates?
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 DXC Technology. The most common topics and skills that interviewers at DXC Technology expect are Core Java, Social Media Marketing, J2Ee, Struts and AWS.
What are the top questions asked in DXC Technology Senior Java Developer interview for experienced candidates?

Some of the top questions asked at the DXC Technology Senior Java Developer interview for experienced candidates -

  1. IN WHICH SITUATION WE USE @PRIMARY AND @ QUALIFIER...read more
  2. HOW TO CREATE OUR OWN IMMUTABLE CLASS? WHY IMMUTABLE CL...read more
  3. WHAT IS DIFFERENCE BETWEEN COMPOSITION AND AGGREGATIO...read more

Tell us how to improve this page.

Overall Interview Experience Rating

5/5

based on 1 interview experience

Difficulty level

Moderate 100%

Duration

Less than 2 weeks 100%
View more

Senior Java Developer Interview Questions from Similar Companies

Capgemini Senior Java Developer Interview Questions
3.7
ย โ€ขย 29 Interviews
Wipro Senior Java Developer Interview Questions
3.7
ย โ€ขย 13 Interviews
IBM Senior Java Developer Interview Questions
4.0
ย โ€ขย 3 Interviews
NTT Data Senior Java Developer Interview Questions
3.8
ย โ€ขย 2 Interviews
View all
DXC Technology Senior Java Developer Salary
based on 21 salaries
โ‚น9.8 L/yr - โ‚น25.1 L/yr
At par with the average Senior Java Developer Salary in India
View more details

DXC Technology Senior Java Developer Reviews and Ratings

based on 1 review

4.0/5

Rating in categories

4.0

Skill development

4.0

Work-life balance

3.0

Salary

3.0

Job security

3.0

Company culture

3.0

Promotions

3.0

Work satisfaction

Explore 1 Review and Rating
Associate Professional Software Engineer
2.7k salaries
unlock blur

โ‚น3 L/yr - โ‚น8 L/yr

Software Engineer
1.9k salaries
unlock blur

โ‚น4.6 L/yr - โ‚น10.4 L/yr

Associate Professional
1.4k salaries
unlock blur

โ‚น2 L/yr - โ‚น7 L/yr

Associate Software Engineer
1.2k salaries
unlock blur

โ‚น3 L/yr - โ‚น7.3 L/yr

Senior Software Engineer
1.2k salaries
unlock blur

โ‚น9.3 L/yr - โ‚น22.1 L/yr

Explore more salaries
Compare DXC Technology with

Cognizant

3.7
Compare

Capgemini

3.7
Compare

TCS

3.6
Compare

Wipro

3.7
Compare
write
Share an Interview