i
DXC Technology
Filter interviews by
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.
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...
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
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...
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...
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...
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...
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 ...
I was interviewed before Sep 2016.
I was interviewed in Mar 2017.
Oops concepts in Java
Encapsulation - hiding implementation details
Inheritance - reusing code and creating parent-child relationships
Polymorphism - multiple forms of a method or object
Abstraction - creating abstract classes and interfaces
Example: Encapsulation - using private variables and public methods
Example: Inheritance - creating a subclass that inherits from a superclass
Example: Polymorphism - using method overloa...
Altering columns in databases involves modifying the structure of a table by adding, deleting or modifying columns.
Use ALTER TABLE statement to modify columns
Add new columns using ADD COLUMN
Delete columns using DROP COLUMN
Modify columns using MODIFY COLUMN
Changing column data type may result in data loss
Reversing a number in Java
Convert the number to a string
Use StringBuilder to reverse the string
Convert the reversed string back to a number
To extract words from a line in Java, split the line using whitespace as delimiter.
Use the split() method of String class
Pass the whitespace regex as argument to split() method
Iterate over the resulting array to get individual words
posted on 23 Sep 2017
I was interviewed in Sep 2017.
Generic collections provide type safety and reusability in software development.
Generic collections allow us to store and manipulate objects of any type in a type-safe manner.
They provide compile-time type checking, reducing the chances of runtime errors.
They promote code reusability by allowing the same collection to be used with different types.
Generic collections improve performance by eliminating the need for boxin...
I was interviewed before Jun 2016.
I am a passionate software developer with 5 years of experience in web development and a strong background in computer science.
5 years of experience in web development
Strong background in computer science
Passionate about software development
To separate personal and professional calls, and to ensure availability and accessibility.
Separate personal and professional calls
Ensure availability and accessibility
Maintain work-life balance
Avoid mixing personal and work-related contacts
I was interviewed in Jul 2017.
I was interviewed in Apr 2017.
Firmware is a type of software that is embedded in hardware devices to control their functionality.
Firmware is a combination of hardware and software.
It is used to control the behavior of hardware devices.
Firmware is typically stored in non-volatile memory, such as ROM or flash memory.
Examples of devices that use firmware include routers, printers, and digital cameras.
I am a passionate software developer with experience in building web applications and solving complex problems.
Experienced in programming languages such as Java, JavaScript, and Python
Familiar with front-end technologies like HTML, CSS, and React
Strong problem-solving skills and ability to work in a team environment
Previous projects include developing a customer management system for a small business
I was interviewed before May 2016.
Developed a web application for tracking personal expenses
Used HTML, CSS, and JavaScript for front-end development
Implemented Node.js and MongoDB for back-end functionality
Included features for adding, categorizing, and analyzing expenses
I actively participate in team building activities and collaborate with colleagues on various initiatives outside of work projects.
Organizing team lunches or outings to build camaraderie
Participating in charity events or volunteer work as a team
Collaborating on internal initiatives such as diversity and inclusion programs
Attending industry conferences or workshops together
I will explain the reasons for the delay and present a plan to mitigate it.
Communicate the reasons for the delay clearly and honestly
Present a plan to mitigate the delay and ensure timely delivery
Provide regular updates on the progress of the project
Offer alternative solutions or compromises if necessary
Ensure that the client understands the impact of the delay on the project
Maintain a professional and respectful attit
based on 1 interview
Interview experience
based on 1 review
Rating in categories
Associate Professional Software Engineer
2.2k
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
2k
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate Professional
1.5k
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate Software Engineer
1.2k
salaries
| ₹0 L/yr - ₹0 L/yr |
Professional 1
1.1k
salaries
| ₹0 L/yr - ₹0 L/yr |
Cognizant
Capgemini
TCS
Wipro