
Capgemini


Capgemini Fullstack Java Developer Interview Questions and Answers
Q1. Write a palindrome program in java
A palindrome program in Java checks if a given string is the same when read forwards and backwards.
Convert the string to lowercase to ignore case sensitivity.
Use two pointers, one starting from the beginning and the other from the end of the string.
Compare the characters at the two pointers, moving them towards the center until they meet or cross each other.
If at any point the characters are not equal, the string is not a palindrome.
If the pointers meet or cross each other, t...read more
Q2. Create a table questions in mysql
Creating a table named 'questions' in MySQL.
Use the CREATE TABLE statement to create the table.
Specify the table name, column names, and their data types.
Set primary key, foreign key, and other constraints if required.
Add any additional properties like auto-increment, default values, etc.
Execute the SQL statement to create the table.
Q3. Find the second largest element from array
Find the second largest element from array of strings
Sort the array in descending order
Access the element at index 1 to get the second largest element
Q4. Explain oops concept in java
OOPs concept in Java is a programming paradigm that focuses on objects and their interactions.
OOPs stands for Object-Oriented Programming.
It involves the use of classes, objects, inheritance, polymorphism, and encapsulation.
Classes are blueprints for creating objects, and objects are instances of classes.
Inheritance allows classes to inherit properties and behaviors from other classes.
Polymorphism allows objects of different classes to be treated as objects of a common superc...read more
Q5. failsafe vs fail fast integrators
Failsafe integrators prioritize system stability by handling errors gracefully, while fail fast integrators prioritize quick detection and resolution of errors.
Failsafe integrators focus on ensuring the system continues to function even in the presence of errors.
Fail fast integrators aim to quickly identify and address errors to prevent further issues.
Failsafe integrators often use techniques like retries, circuit breakers, and fallback mechanisms.
Fail fast integrators typica...read more
Q6. Decorators in annular
Decorators in Angular are functions that allow you to modify or extend the behavior of classes or methods.
Decorators are used to add metadata to classes or methods in Angular applications.
They are prefixed with @ symbol and are followed by the decorator name.
Common decorators in Angular include @Component, @Directive, @Injectable, @Input, @Output, etc.
Decorators can be used for various purposes such as defining components, services, directives, etc.
They help in organizing and...read more
More about working at Capgemini







Interview Process at Capgemini Fullstack Java Developer



Reviews
Interviews
Salaries
Users/Month

