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

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

asked in Amdocs
Q1. Remove the Kth Node from the End of a Linked List You are given a ... read more
asked in Amdocs
Q2. Intersection of Linked List Problem You are provided with two sin ... read more
asked in Amdocs
Q3. Merge Two Sorted Linked Lists Problem Statement You are provided ... read more
asked in Amdocs
Q4. LRU Cache Design Question Design a data structure for a Least Rec ... read more
asked in Caspex Corp
Q5. How would you configure Jenkins or GitLab's CICD pipelines to tri ... 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
2w
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

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 Naukri.com and was interviewed before May 2021. There were 3 interview rounds.

Round 1 - Technical 

(1 Question)

  • Q1. Java Collection, OOPS, Seralization
Round 2 - Technical 

(1 Question)

  • Q1. Java OOPS, Collection, threading, SQL
Round 3 - HR 

(1 Question)

  • Q1. Nothing specific, Salary Negotiations.

Interview Preparation Tips

Interview preparation tips for other job seekers - overall good experience and process was quick

Senior Java Developer Interview Questions Asked at Other Companies

asked in Amdocs
Q1. Remove the Kth Node from the End of a Linked List You are given a ... read more
asked in Amdocs
Q2. Intersection of Linked List Problem You are provided with two sin ... read more
asked in Amdocs
Q3. Merge Two Sorted Linked Lists Problem Statement You are provided ... read more
asked in Amdocs
Q4. LRU Cache Design Question Design a data structure for a Least Rec ... read more
asked in Caspex Corp
Q5. How would you configure Jenkins or GitLab's CICD pipelines to tri ... read more

I applied via Recruitment Consultant and was interviewed in May 2020. There were 3 interview rounds.

Interview Questionnaire 

2 Questions

  • Q1. Just Basic OOP's question, What is Interface, why use them?
  • Ans. 

    An interface defines a contract for classes, specifying methods without implementation, promoting abstraction and flexibility in OOP.

    • Interfaces allow multiple classes to implement the same set of methods, ensuring a consistent API.

    • Example: An interface 'Animal' with methods 'eat()' and 'sleep()' can be implemented by 'Dog' and 'Cat' classes.

    • They enable polymorphism, allowing objects to be treated as instances of their ...

  • Answered by AI
  • Q2. What is Abstract Class?
  • Ans. 

    Abstract class is a class that cannot be instantiated and is used as a base class for other classes.

    • An abstract class can have abstract and non-abstract methods.

    • Abstract methods have no implementation and must be implemented by the derived class.

    • An abstract class can have constructors and fields.

    • An abstract class can be used to define a common interface for a group of related classes.

    • Example: Animal is an abstract clas...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - A recruiter found me on Naukari Site the name of the person is Kartik (*****), and then, set up an initial L1 interview with the peers. The initial contact was a phone screen regarding the job location, title, salary, etc. in Banglore after that, he set up the meetings with peers for the interview.

The interview was too good, but one thing which I feel bad Interviewer asked me salary while this is the part of the HR department, so why Interviewer asked me salary during an interview, this is totally not good for any candidate because if the candidate expectation is greater than the interviewer salary then definitely he will not hire that candidate that means.  



After Interview:-

 Then, Kartik HR contact me again to tell that they are willing to offer less salary 14LPA than that was decided
- I said yes, and they asked me joining date
- I provided the next week date itself
- But I never heard back from them afterward.
- I tried to contact Kartik, but he is not willing to reply

Very unprofessional behavior and bad experience. I don't know were they just wasting my time.

Skills evaluated in this interview

I applied via Walk-in and was interviewed in Jan 2020. There were 3 interview rounds.

Interview Questionnaire 

5 Questions

  • Q1. Basic structure of an HTML page
  • Ans. 

    Basic structure of an HTML page includes doctype declaration, html, head, and body tags.

    • DOCTYPE declaration specifies the HTML version

    • HTML tag wraps the entire content of the page

    • Head tag contains meta information, title, and links to external resources

    • Body tag contains the visible content of the page

  • Answered by AI
  • Q2. What is the difference between padding and margin?
  • Q3. What is Box Model?
  • Ans. 

    Box Model is a concept in CSS where every element is treated as a box with content, padding, border, and margin.

    • Box Model consists of content, padding, border, and margin.

    • Content is the actual content of the box.

    • Padding is the space between the content and the border.

    • Border is the line that goes around the padding and content.

    • Margin is the space outside the border.

  • Answered by AI
  • Q4. What are different types of directives in Angular?
  • Q5. Difference between JIT compiler and AOT?

Interview Preparation Tips

Interview preparation tips for other job seekers - Try to answer 80 % of the questions you are asked, you will be able to crack the interview

Skills evaluated in this interview

What people are saying about DXC Technology

View All
carefulmatcha
Verified Icon
2w
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 Feb 2021. There were 3 interview rounds.

Round 1 - Assignment 
Round 2 - HR 

(7 Questions)

  • Q1. Share details of your previous job.
  • Q2. Why should we hire you?
  • Q3. What are your salary expectations?
  • Q4. What is your family background?
  • Ans. 

    I come from a close-knit family that values education, creativity, and support, shaping my personal and professional growth.

    • Supportive Parents: My parents encouraged my interests in technology from a young age, providing resources for learning programming.

    • Siblings: I have a younger sister who is passionate about art, and we often collaborate on projects that blend technology and creativity.

    • Family Traditions: We have a ...

  • Answered by AI
  • Q5. What are your strengths and weaknesses?
  • Q6. Tell me about yourself.
  • Q7. This opportunity is really excited for me
Round 3 - HR 

(7 Questions)

  • Q1. What are your salary expectations?
  • Q2. What is your family background?
  • Ans. 

    I come from a close-knit family that values education, creativity, and support, which has greatly influenced my career path.

    • Supportive Parents: My parents encouraged my interest in technology from a young age, providing me with resources like books and courses.

    • Siblings: I have a younger sister who is also in the tech field, and we often collaborate on projects, sharing ideas and learning from each other.

    • Family Values: ...

  • Answered by AI
  • Q3. Share details of your previous job.
  • Q4. What are your strengths and weaknesses?
  • Q5. Tell me about yourself.
  • Q6. Describe any difficult work situation or project that you have handled
  • Ans. 

    Handled a difficult project involving complex data migration and integration

    • Had to understand the existing data structure and map it to the new system

    • Dealt with multiple data sources and formats

    • Ensured data integrity and accuracy throughout the migration process

    • Collaborated with cross-functional teams to ensure successful integration

    • Implemented automated testing to validate data migration and integration

    • Managed project...

  • Answered by AI
  • Q7. Hard work and smart work
  • Ans. Reaching the building through steps is hard work ,smart work life is smart 6 the uses steps definitely .. reach the destination
  • Answered Anonymously

Interview Preparation Tips

Topics to prepare for Wipro Software Developer interview:
  • Software developer
  • Flash Animation
  • 3D Character Animation
  • Photography
  • Photoshop
  • Basic
  • Logo Design
Interview preparation tips for other job seekers - In my opinion,both are the key of success hardwork give experiences and smart work come from experience so both are important to achieve success

I applied via Recruitment Consulltant and was interviewed before Aug 2021. There were 2 interview rounds.

Round 1 - Technical 

(1 Question)

  • Q1. Java. Spring boot, micro service, hibernate
Round 2 - HR 

(1 Question)

  • Q1. Salary, technical, company details

Interview Preparation Tips

Topics to prepare for Accenture Software Developer interview:
  • Java
  • Spring Boot
  • Micro service
  • Hibernate
  • JSP
Interview preparation tips for other job seekers - Java, spring boot, micro service, hibernate

I applied via Campus Placement and was interviewed before Sep 2021. There was 1 interview round.

Round 1 - Technical 

(1 Question)

  • Q1. Java and spring based questions.

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare java questions, spring and Data structure.
Are these interview questions helpful?

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

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.

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..!!

DXC Technology Interview FAQs

How many rounds are there in DXC Technology Senior Java Developer interview?
DXC Technology interview process usually has 2 rounds. The most common rounds in the DXC Technology interview process are Resume Shortlist and Technical.
How to prepare for DXC Technology Senior 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 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?

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

  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
DXC Technology Senior Java Developer Salary
based on 21 salaries
₹9.8 L/yr - ₹22.2 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.8k salaries
unlock blur

₹4.6 L/yr - ₹10.4 L/yr

Associate Professional
1.5k salaries
unlock blur

₹3.5 L/yr - ₹7 L/yr

Associate Software Engineer
1.2k salaries
unlock blur

₹3 L/yr - ₹7.3 L/yr

Software Developer
1.2k salaries
unlock blur

₹3.9 L/yr - ₹19.2 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