Xyz Company
Kotak Mahindara Life Insurance Interview Questions and Answers
Q1. What are the difference between array and arraylist
Array is a fixed-size data structure while ArrayList is a dynamic-size data structure in Java.
Array is a fixed-size collection of elements of the same data type, while ArrayList is a dynamic-size collection that can grow or shrink.
Arrays can store primitive data types and objects, while ArrayList can only store objects.
Arrays require a specified size at the time of declaration, while ArrayList can dynamically resize itself.
Arrays use square brackets [] for declaration, while ...read more
Q2. What is Java , what are the four pillars of java
Java is a popular programming language known for its platform independence and object-oriented approach.
Java is platform-independent, meaning it can run on any device with a Java Virtual Machine (JVM)
Object-oriented programming is a key feature of Java, allowing for code reusability and modularity
The four pillars of Java are: Inheritance, Encapsulation, Abstraction, and Polymorphism
Inheritance allows a class to inherit properties and behavior from another class
Encapsulation r...read more
Q3. What is recursion, write a code for it
Recursion is a programming technique where a function calls itself to solve a problem.
Recursion involves breaking down a problem into smaller subproblems and solving them recursively.
A base case is needed to stop the recursion and prevent infinite loops.
Example: Factorial calculation using recursion - function factorial(n) { return n === 0 ? 1 : n * factorial(n-1); }
Q4. Why we don't use pointers in java
Java doesn't use pointers for security and simplicity reasons.
Java uses references instead of pointers to avoid direct memory manipulation.
Pointers can lead to memory leaks and security vulnerabilities.
Java's garbage collection manages memory automatically, reducing the need for pointers.
Q5. What is react explain
React is a JavaScript library for building user interfaces.
React allows developers to create reusable UI components.
It uses a virtual DOM for efficient rendering.
React can be used to build single-page applications.
React is maintained by Facebook and a community of developers.
Q6. What is IP Address?
An IP address is a unique numerical label assigned to each device connected to a computer network.
IP addresses are used to identify and locate devices on a network.
There are two types of IP addresses: IPv4 and IPv6.
IPv4 addresses are written as four sets of numbers separated by periods (e.g. 192.168.1.1).
IPv6 addresses are written as eight groups of four hexadecimal digits separated by colons (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334).
Interview Process at Kotak Mahindara Life Insurance
Top Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month