Add office photos
Engaged Employer

Capgemini

3.8
based on 38.8k Reviews
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by

10+ Capgemini Interview Questions and Answers

Updated 19 Nov 2024
Popular Designations

Q1. why react is faster, default parameters, can you call async function in useEffect

Ans.

React is faster due to virtual DOM, default parameters provide fallback values, async functions can be called in useEffect

  • React is faster than traditional DOM manipulation because it uses a virtual DOM to minimize actual DOM updates

  • Default parameters in JavaScript allow you to specify default values for function parameters if no value is provided

  • Async functions can be called in useEffect hook in React to perform asynchronous operations within a functional component

View 1 answer

Q2. What is sub flow in mule?

Ans.

Sub flow in Mule is a reusable flow that can be called from other flows.

  • Sub flow is a separate flow that can be called from other flows

  • It helps in reusing the same logic in multiple flows

  • Sub flow can have its own set of input and output parameters

  • It can be used to encapsulate complex logic and make the main flow more readable

  • Example: A sub flow for database connection that can be called from multiple flows

View 2 more answers

Q3. What are the Design patterns have you used?

Ans.

I have used design patterns such as Singleton, Factory, and Observer in my projects.

  • Singleton pattern ensures a class has only one instance and provides a global point of access to it.

  • Factory pattern creates objects without specifying the exact class of object that will be created.

  • Observer pattern defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.

Add your answer

Q4. How do you write custom exception?

Ans.

Custom exceptions can be written by creating a new class that extends the Exception class.

  • Create a new class that extends the Exception class

  • Add a constructor to the custom exception class

  • Throw the custom exception using 'throw new CustomException(message)'

Add your answer
Discover Capgemini interview dos and don'ts from real experiences

Q5. Difference between throw , throws and throwable ?

Ans.

throw is a keyword used to throw an exception, throws is used in method signature to declare exceptions thrown, and Throwable is a superclass for all exceptions and errors.

  • throw is used to throw an exception in a try-catch block

  • throws is used in method signature to declare exceptions that the method can throw

  • Throwable is a superclass for all exceptions and errors in Java

Add your answer

Q6. what is loop? what is inheritance?

Ans.

A loop is a programming construct that repeats a set of instructions until a specific condition is met. Inheritance is a mechanism in object-oriented programming where a new class inherits properties and behaviors from an existing class.

  • A loop allows a set of instructions to be executed repeatedly based on a condition. Examples include for loops, while loops, and do-while loops.

  • Inheritance allows a new class (subclass) to inherit properties and behaviors from an existing clas...read more

Add your answer
Are these interview questions helpful?

Q7. What is cursor and explain wd eg

Ans.

A cursor is a database object used to retrieve data from a result set one row at a time.

  • Cursor is used in SQL to fetch and manipulate data row by row

  • Examples of cursor include FETCH, OPEN, CLOSE, and DECLARE

  • Cursor is often used in stored procedures and triggers

Add your answer

Q8. What is oracle database structure?

Ans.

Oracle database structure refers to the organization of data in tables, indexes, views, and other database objects.

  • Consists of tables, which store data in rows and columns

  • Includes indexes for faster data retrieval

  • Views provide virtual representations of data from one or more tables

  • Constraints ensure data integrity and enforce rules

  • Stored procedures and functions for processing data

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. What is a choice router?

Ans.

A choice router is a device or software that directs incoming data packets to the appropriate destination based on predefined rules or user preferences.

  • A choice router is used in computer networks to manage and control the flow of data.

  • It examines the header information of incoming packets to determine the best path for forwarding the data.

  • Choice routers can be hardware devices or software programs.

  • They can be configured to prioritize certain types of traffic or apply specifi...read more

View 1 answer

Q10. Internal structure of collections

Ans.

Internal structure of collections refers to the organization and arrangement of data within a collection.

  • Collections can be organized using various data structures such as arrays, linked lists, trees, and hash tables.

  • The choice of data structure depends on the type of data being stored and the operations that need to be performed on the collection.

  • For example, an array is a good choice for collections with fixed size and random access, while a linked list is better for collec...read more

Add your answer

Q11. What are materialised views

Ans.

Materialized views are precomputed views stored on disk for faster query performance.

  • Materialized views store the results of a query on disk so that the query can be run faster in the future.

  • They are updated periodically to reflect changes in the underlying data.

  • Materialized views are commonly used in data warehousing and reporting applications.

  • Examples of materialized views include summary tables, aggregated data, and complex joins.

Add your answer

Q12. What is partition?

Ans.

Partition is the division of a physical or logical structure into multiple parts.

  • Partitioning helps in organizing data, improving performance, and increasing efficiency.

  • Examples include disk partitioning in a computer system, partitioning of a database table for better management, and partitioning of a hard drive for separate storage areas.

Add your answer

Q13. Internal working of hashmap

Ans.

HashMap is a data structure that stores key-value pairs and uses hashing to quickly retrieve values based on keys.

  • HashMap internally 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.

  • HashMap uses the hashCode() method of keys to calculate the hash value.

  • HashMap allows null keys an...read more

Add your answer

Q14. Feature of micro services

Ans.

Microservices are a software development technique that structures an application as a collection of loosely coupled services.

  • Each service is self-contained and can be developed, deployed, and scaled independently

  • Promotes flexibility, scalability, and resilience in software development

  • Allows for different technologies to be used for different services

  • Enables teams to work on different services simultaneously

  • Facilitates easier maintenance and updates

Add your answer

Q15. Write a java program

Ans.

Java program to print 'Hello, World!'

  • Create a class with a main method

  • Use System.out.println() to print the message

  • Compile and run the program

Add your answer

Q16. 1. Polymorphism in Java

Ans.

Polymorphism in Java allows objects of different classes to be treated as objects of a common superclass.

  • Polymorphism allows methods to be called on objects of different classes that share a common superclass.

  • There are two types of polymorphism in Java: compile-time polymorphism (method overloading) and runtime polymorphism (method overriding).

  • Example of runtime polymorphism is when a subclass overrides a method of its superclass.

  • Polymorphism helps in achieving flexibility an...read more

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Capgemini

based on 133 interviews in the last 1 year
4 Interview rounds
Technical Round 1
Technical Round 2
HR Round 1
HR Round 2
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Consultant Interview Questions from Similar Companies

3.7
 • 27 Interview Questions
3.8
 • 22 Interview Questions
3.6
 • 13 Interview Questions
3.8
 • 12 Interview Questions
3.1
 • 10 Interview Questions
3.6
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter