# LTIMindtree Interview Questions with Answers

8 previously-asked interview questions from LTIMindtree's hiring process, each with the correct answer and a worked explanation. Written against the company's actual test pattern.

_Source: Astra (https://useastra.in). Updated 2026-09-05._

### 1. What is the difference between overloading and overriding?

**Answer:** Overloading defines multiple methods with the same name but different parameters in the same class, resolved at compile time. Overriding redefines a parent method with the same signature in a subclass, resolved at runtime. Overloading is compile time polymorphism; overriding is runtime.

**Explanation:** Overloading: same name, different params, compile time. Overriding: same signature, runtime.

### 2. What is a deadlock and what are its necessary conditions?

**Answer:** A deadlock is when processes wait forever for resources held by each other. It needs four conditions together: mutual exclusion, hold and wait, no preemption, and circular wait. Breaking any one prevents deadlock.

**Explanation:** Circular waiting; four Coffman conditions.

### 3. What is the difference between the WHERE and HAVING clauses in SQL?

**Answer:** WHERE filters individual rows before grouping and cannot use aggregate functions. HAVING filters groups after GROUP BY and can use aggregates like SUM or COUNT. WHERE runs first, then grouping, then HAVING.

**Explanation:** WHERE filters rows before grouping; HAVING filters groups after.

### 4. What is encapsulation in object oriented programming?

**Answer:** Encapsulation binds data and the methods that operate on it into a single unit (a class) and restricts direct access to internal state through access modifiers, exposing behaviour via controlled methods. It improves security and maintainability.

**Explanation:** Bundle data with methods and restrict direct access.

### 5. What is the difference between an array and an ArrayList in Java?

**Answer:** An array has a fixed size and can hold primitives or objects. An ArrayList is a resizable collection that holds objects only, grows automatically, and provides helper methods, at some performance cost due to dynamic resizing and boxing.

**Explanation:** Array: fixed size, primitives allowed. ArrayList: resizable, objects only.

### 6. What is a transaction in a database?

**Answer:** A transaction is a sequence of operations treated as a single logical unit that either fully completes or fully fails, preserving the ACID properties. Commit makes its changes permanent; rollback undoes them on failure.

**Explanation:** A unit of work that is all or nothing, following ACID.

### 7. Tell me about yourself.

**Answer:** Give a concise 60 to 90 second overview: your degree, key skills, a project or internship with its impact, and why LTIMindtree interests you. Keep it structured and relevant.

**Explanation:** Structured pitch: background, skills, project, fit.

### 8. Why do you want to join LTIMindtree?

**Answer:** Mention LTIMindtree scale after the L&T Infotech and Mindtree merger, its digital and cloud focus, strong fresher training, and diverse client projects. Tie it to your goal of building a strong foundation.

**Explanation:** Merged scale, digital and cloud focus, training.

More LTIMindtree preparation, including the full recruitment process: https://useastra.in/campus/ltimindtree
