Add office photos
LTIMindtree logo
Engaged Employer

LTIMindtree

Verified
3.8
based on 21.1k Reviews
Filter interviews by
Engineer Trainee
Fresher
Clear (2)

LTIMindtree Engineer Trainee Interview Questions and Answers for Freshers

Updated 4 Aug 2024

Q1. What is the interface in Java? Provide an example, how you use it?

Ans.

Interface in Java defines a set of methods that a class must implement.

  • Interface in Java is a blueprint of a class. It only contains method signatures without the body.

  • Classes can implement multiple interfaces but can only extend one class.

  • Example: interface Animal { void eat(); } class Dog implements Animal { public void eat() { System.out.println("Dog is eating"); }}

Add your answer
right arrow

Q2. What is the class in Java? Explain with an example.

Ans.

In Java, a class is a blueprint for creating objects. It defines the properties and behaviors of objects.

  • A class in Java is a template for creating objects, which encapsulates data for the object and methods to manipulate that data.

  • Classes are defined using the 'class' keyword followed by the class name.

  • Example: class Car { private String color; public void setColor(String c) { color = c; } }

Add your answer
right arrow

Q3. Write SQL commands to create a student table with ID and name, columns, and the data and designing order of ID

Ans.

Creating a student table in SQL with ID and name columns and setting the order of ID

  • Use CREATE TABLE command to create the student table

  • Specify ID and name columns with their data types

  • Set the ID column as the primary key to enforce uniqueness and order

Add your answer
right arrow

Q4. Write a java proram to check if a given string is a palindrome

Ans.

A Java program to check if a given string is a palindrome.

  • Create a function that takes a string as input.

  • Use two pointers, one starting from the beginning and one from the end, to compare characters.

  • If all characters match, the string is a palindrome.

  • Example: 'racecar' is a palindrome, 'hello' is not.

Add your answer
right arrow
Discover LTIMindtree interview dos and don'ts from real experiences

Q5. Write a code in Java, explain the concept of a class, using example of a fruit class

Ans.

Explanation of a class in Java using a fruit class example

  • A class in Java is a blueprint for creating objects. It defines the properties and behaviors of objects.

  • In the case of a fruit class, properties could include name, color, and taste, while behaviors could include methods like ripen() and rot().

  • Example: class Fruit { String name; String color; String taste; void ripen() { //code to ripen fruit } void rot() { //code to rot fruit }}

Add your answer
right arrow

Q6. What are ddl and dml commands in SQL

Ans.

DDL (Data Definition Language) commands are used to define the structure of a database, while DML (Data Manipulation Language) commands are used to manipulate data within the database.

  • DDL commands include CREATE, ALTER, DROP, TRUNCATE, etc.

  • DML commands include INSERT, UPDATE, DELETE, SELECT, etc.

  • DDL commands are used to create or modify the structure of database objects like tables, indexes, etc.

  • DML commands are used to manipulate data stored in the database tables.

  • Example of...read more

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

Interview Process at LTIMindtree Engineer Trainee for Freshers

based on 3 interviews
Interview experience
3.7
Good
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Engineer Trainee Interview Questions from Similar Companies

TCS Logo
3.7
 • 28 Interview Questions
TCE Logo
3.8
 • 12 Interview Questions
View all
Recently Viewed
INTERVIEWS
JBS Enterprises
5.6k top interview questions
SALARIES
Codestore Technologies
SALARIES
Accord Software & Systems
SALARIES
Accord Software & Systems
SALARIES
Codestore Technologies
INTERVIEWS
JBS Enterprises
No Interviews
INTERVIEWS
JBS Enterprises
No Interviews
INTERVIEWS
JBS Enterprises
No Interviews
SALARIES
Accord Software & Systems
SALARIES
Codestore Technologies
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

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