Add office photos
Infogain logo
Premium Employer

Infogain

Verified
3.6
based on 1.1k Reviews
Video summary
Filter interviews by
Java Developer
Clear (1)

Infogain Java Developer Interview Questions and Answers

Updated 20 Jun 2024

Q1. Write a program to find the min and max no from the array

Ans.

Program to find min and max no from array of strings

  • Iterate through the array and compare each element to find min and max

  • Use Integer.parseInt() to convert strings to integers for comparison

  • Initialize min and max variables with first element of array

Add your answer
right arrow

Q2. difference between the @controller vs @restcontroller

Ans.

The @Controller annotation is used to create a controller class in Spring MVC, while @RestController is used to create RESTful web services.

  • The @Controller annotation is used to create a controller class in Spring MVC, which is used to handle traditional web requests.

  • The @RestController annotation is used to create RESTful web services, which return data in JSON or XML format.

  • The @RestController annotation is a specialized version of the @Controller annotation that includes t...read more

Add your answer
right arrow

Q3. Have you worked on the Data Structures

Ans.

Yes, I have worked on various data structures like arrays, linked lists, stacks, queues, trees, and graphs.

  • I have implemented algorithms using data structures like sorting, searching, and traversal.

  • I have optimized code by choosing the appropriate data structure for the problem.

  • I have used data structures in projects to efficiently store and manipulate data.

Add your answer
right arrow

Q4. Have you worked on the Multithreading

Ans.

Yes, I have experience working on Multithreading in Java.

  • Implemented multithreading using Java's Thread class

  • Used synchronized keyword to handle thread synchronization

  • Utilized Executor framework for managing thread pools

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

Q5. Difference between the @service vs @Repository

Ans.

The @Service annotation is used to mark a class as a service, while the @Repository annotation is used to mark a class as a repository.

  • The @Service annotation is typically used on service layer classes, which contain business logic.

  • The @Repository annotation is typically used on repository classes, which interact with a database or other data source.

  • Both annotations are used for component scanning and dependency injection in Spring framework.

  • Example: @Service UserService { .....read more

Add your answer
right arrow

Q6. Difference between the Arrylist vs Linkedlist

Ans.

ArrayList is implemented using a dynamic array while LinkedList is implemented using a doubly linked list.

  • ArrayList provides fast access to elements using index, but slow insertion and deletion.

  • LinkedList provides fast insertion and deletion, but slow access to elements.

  • Example: ArrayList is suitable for scenarios where random access is required, while LinkedList is suitable for scenarios where frequent insertion and deletion are needed.

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 Infogain Java Developer

based on 3 interviews
1 Interview rounds
Technical Round
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Java Developer Interview Questions from Similar Companies

Capgemini Logo
3.7
 • 86 Interview Questions
LTIMindtree Logo
3.8
 • 32 Interview Questions
EPAM Systems Logo
3.7
 • 11 Interview Questions
FRSPL Logo
4.5
 • 11 Interview Questions
View all
Recently Viewed
INTERVIEWS
GlobalData
No Interviews
INTERVIEWS
Adrosonic
No Interviews
INTERVIEWS
GlobalData
No Interviews
INTERVIEWS
Infogain
No Interviews
INTERVIEWS
Infogain
No Interviews
INTERVIEWS
CommScope
No Interviews
INTERVIEWS
Infogain
No Interviews
INTERVIEWS
GlobalData
5.6k top interview questions
INTERVIEWS
Infogain
No Interviews
INTERVIEWS
Infogain
No Interviews
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