Premium Employer

Infogain

3.6
based on 1.1k Reviews
Filter interviews by

KarnaniSoft Technologies Interview Questions and Answers

Updated 20 Jun 2024
Popular Designations

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

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

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

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
Discover KarnaniSoft Technologies 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

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
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at KarnaniSoft Technologies

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

Top Java Developer Interview Questions from Similar Companies

3.8
 • 34 Interview Questions
3.5
 • 18 Interview Questions
3.8
 • 13 Interview Questions
3.7
 • 11 Interview Questions
3.3
 • 11 Interview Questions
3.5
 • 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
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