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 Java Developer Interview Questions and Answers

Updated 10 Dec 2024

DXC Technology Java Developer Interview Experiences

2 interviews found

Interview experience
1
Bad
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

Good coding questions related array and string

Java Developer interview

user image Drunken Engineer

posted on 18 Nov 2021

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() C ... read more
asked in LTIMindtree
Q3. Longest Harmonious Subsequence Problem Statement Determine the lo ... read more
asked in Deloitte
Q4. Convert BST to Greater Sum Tree Given a Binary Search Tree (BST) ... read more
asked in Infosys
Q5. Which should be preferred between String and StringBuffer when th ... read more

Interview questions from similar companies

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Approached by Company and was interviewed in Dec 2024. There was 1 interview round.

Round 1 - Technical 

(8 Questions)

  • Q1. What improvements to interfaces were introduced in Java 8 that were missing in Java 7, specifically regarding static and default methods?
  • Ans. 

    Java 8 introduced static and default methods in interfaces, allowing for method implementation and code reusability.

    • Java 8 introduced static methods in interfaces, allowing for method implementation directly in the interface itself.

    • Default methods were also introduced in Java 8, enabling interfaces to have method implementations without affecting implementing classes.

    • Static methods in interfaces can be called using the...

  • Answered by AI
  • Q2. Explain internal working of HashMap ? How to synchronize it ?
  • Ans. 

    HashMap is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values.

    • HashMap uses an array of linked lists to store key-value pairs.

    • When a key-value pair is added, the key is hashed to determine the index in the array where it will be stored.

    • If multiple keys hash to the same index, a linked list is used to handle collisions.

    • To synchronize a HashMap, you can use the synchronizedMap() m...

  • Answered by AI
  • Q3. Given a list of employees with their ratings, how can you sort the employees based on their ratings using the Java 8 Streaming API?
  • Q4. Will the program compile if the parent class throws a runtime exception while the child class throws an arithmetic exception?
  • Ans. 

    No, the program will not compile if the parent class throws a runtime exception while the child class throws an arithmetic exception.

    • In Java, if a parent class method throws a checked exception, the child class method can only throw the same exception or its subclasses.

    • ArithmeticException is an unchecked exception, so if the parent class throws a checked exception and the child class throws an unchecked exception, the ...

  • Answered by AI
  • Q5. In a Spring Boot application with two databases, how can you configure JDBC to specify which database to use?
  • Ans. 

    Configure JDBC in Spring Boot to specify which database to use

    • Define multiple DataSource beans in the configuration class

    • Use @Primary annotation to specify the primary DataSource

    • Use @Qualifier annotation to specify the secondary DataSource

    • Inject the DataSource beans where needed in the application

  • Answered by AI
  • Q6. How to use a jetty server in your spring boot application ?
  • Ans. 

    To use a Jetty server in a Spring Boot application, you can configure it as a dependency and customize its settings.

    • Add Jetty server dependency in your pom.xml file

    • Exclude Tomcat server dependency if it's included by default in Spring Boot

    • Configure Jetty server settings in application.properties or application.yml file

    • Example: Add Jetty dependency - <dependency> <groupId>org.springframework.boot</groupId...

  • Answered by AI
  • Q7. Difference between @RequestParam and @PathVariable ?
  • Ans. 

    RequestParam is used to extract query parameters from the URL, while PathVariable is used to extract values from the URI path.

    • RequestParam is used for query parameters in the URL, while PathVariable is used for values in the URI path.

    • RequestParam is optional, while PathVariable is required.

    • RequestParam is used with the @RequestParam annotation, while PathVariable is used with the @PathVariable annotation.

    • Example: @Requ...

  • Answered by AI
  • Q8. How would you handle a scenario where one microservice is awaiting a response from another microservice that is taking an extended time to respond?
  • Ans. 

    I would implement timeout mechanisms and retries to handle the scenario of one microservice awaiting a response from another microservice taking an extended time.

    • Implement timeout mechanisms in the calling microservice to limit the waiting time for a response.

    • Set up retry logic to automatically resend the request to the slow microservice if no response is received within the specified timeout period.

    • Use circuit breaker...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare the basics about Java 8 , Core Java , Springboot , Microservices and MySql.
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.

Round 1 - Technical 

(6 Questions)

  • Q1. Java 8 , java 11 and java 17 features?
  • Ans. 

    Java 8 introduced lambda expressions, Java 11 added local-variable syntax for lambda parameters, and Java 17 included sealed classes and pattern matching.

    • Java 8 introduced lambda expressions for functional programming.

    • Java 11 added local-variable syntax for lambda parameters to simplify code.

    • Java 17 included sealed classes to restrict inheritance and pattern matching for instanceof checks and type casts.

  • Answered by AI
  • Q2. Dispatcher servlet, design patterns
  • Q3. @SpringbootApplication annotation, actuators
  • Q4. String Coding question with java 8 features such as lambda function and stream api
  • Q5. Number of words in a string
  • Ans. 

    Count the number of words in a given string.

    • Split the string by spaces and count the number of resulting elements.

    • Handle edge cases like multiple spaces or empty strings.

    • Consider punctuation marks as part of words unless specified otherwise.

  • Answered by AI
  • Q6. Microservice design patterns
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. Explain architecture of your project
  • Q2. Some questions on Java, Spring Boot and sql
Round 2 - Technical 

(2 Questions)

  • Q1. Project flow and some behavioural questions
  • Q2. Project contribution of yours
  • Ans. 

    Developed a web application for tracking employee attendance and performance

    • Implemented user authentication and authorization using Spring Security

    • Utilized Hibernate for database interaction and data persistence

    • Designed and developed RESTful APIs for frontend integration

    • Used AngularJS for frontend development to create interactive user interfaces

  • Answered by AI
Round 3 - HR 

(1 Question)

  • Q1. Basic formalities before offer release

Interview Preparation Tips

Interview preparation tips for other job seekers - Understand your project properly and have your basic of programming very clear
Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

I applied via Naukri.com and was interviewed in Nov 2024. There was 1 interview round.

Round 1 - One-on-one 

(3 Questions)

  • Q1. Difference between hashmap and hash table
  • Ans. 

    HashMap is non-synchronized and allows null values, while HashTable is synchronized and does not allow null values.

    • HashMap is non-synchronized, meaning it is not thread-safe, while HashTable is synchronized and thread-safe.

    • HashMap allows null values for both keys and values, while HashTable does not allow null keys or values.

    • HashMap is generally preferred for non-thread-safe applications, while HashTable is used in mul

  • Answered by AI
  • Q2. Static block related questions
  • Q3. Arraylist and linkedlist question

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
No response

I applied via Company Website and was interviewed in Nov 2024. There were 3 interview rounds.

Round 1 - Aptitude Test 

A standard online test conducted through one of the testing platforms.

Round 2 - Technical 

(4 Questions)

  • Q1. Java 8 features
  • Q2. Rest API
  • Q3. Java 8 coding problem
  • Q4. Collections
Round 3 - Technical 

(1 Question)

  • Q1. It was based on my previous project
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-

I applied via Naukri.com

Round 1 - Technical 

(2 Questions)

  • Q1. Circuit breaker pattern
  • Q2. Aws S3 access via ECS
Round 2 - Technical 

(2 Questions)

  • Q1. Time Complexity
  • Q2. Coding question and SQL queries
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. Chvvvv vvbbbbb isush shjshs jdudjdj
  • Q2. Vvvhjjjc hhhjVv hsudjsj hsudjsh hdhdh

Interview Preparation Tips

Interview preparation tips for other job seekers - Vvbh
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. Diff between abstract class and interface
  • Ans. 

    Abstract class can have both abstract and non-abstract methods, while interface can only have abstract methods.

    • Abstract class can have constructor, fields, and methods, while interface cannot have any of these.

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

    • Abstract classes are used to define a common behavior among subclasses, while interfaces are used to define a contract for classes...

  • Answered by AI
  • Q2. Explain about handler methods
  • Ans. 

    Handler methods in Java are methods that are responsible for handling incoming requests and generating responses.

    • Handler methods are typically defined in classes annotated with @Controller or @RestController.

    • These methods are mapped to specific URLs using @RequestMapping or other mapping annotations.

    • Handler methods can have parameters such as HttpServletRequest, HttpServletResponse, or model attributes.

    • The return value...

  • Answered by AI

Skills evaluated in this interview

DXC Technology Interview FAQs

How many rounds are there in DXC Technology Java Developer interview?
DXC Technology interview process usually has 1 rounds. The most common rounds in the DXC Technology interview process are Coding Test.
How to prepare for DXC Technology 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 Java, Hibernate, Spring, Spring Boot and J2Ee.

Tell us how to improve this page.

DXC Technology Java Developer Interview Process

based on 3 interviews

Interview experience

2.3
  
Poor
View more
DXC Technology Java Developer Salary
based on 251 salaries
₹2.5 L/yr - ₹11 L/yr
15% more than the average Java Developer Salary in India
View more details

DXC Technology Java Developer Reviews and Ratings

based on 26 reviews

4.0/5

Rating in categories

4.0

Skill development

4.2

Work-life balance

3.1

Salary

3.7

Job security

4.1

Company culture

2.9

Promotions

3.8

Work satisfaction

Explore 26 Reviews and Ratings
Associate Professional Software Engineer
2.2k salaries
unlock blur

₹2 L/yr - ₹7 L/yr

Software Engineer
2k salaries
unlock blur

₹2.4 L/yr - ₹11.8 L/yr

Associate Professional
1.4k salaries
unlock blur

₹2 L/yr - ₹7.8 L/yr

Associate Software Engineer
1.2k salaries
unlock blur

₹3 L/yr - ₹7 L/yr

Professional 1
1.1k salaries
unlock blur

₹3.4 L/yr - ₹13.6 L/yr

Explore more salaries
Compare DXC Technology with

Cognizant

3.8
Compare

Capgemini

3.7
Compare

TCS

3.7
Compare

Wipro

3.7
Compare
Did you find this page helpful?
Yes No
write
Share an Interview