Premium Employer

Paramount Health Services Tpa

3.8
based on 408 Reviews
Filter interviews by

Infosys Interview Questions and Answers

Updated 5 Feb 2024

Q1. What is difference btw interface and abstract and why we use them

Ans.

Interfaces define a contract for classes to implement, while abstract classes can have both abstract and concrete methods.

  • Interfaces can only have abstract methods and constants, while abstract classes can have both abstract and concrete methods.

  • A class can implement multiple interfaces but can only inherit from one abstract class.

  • Interfaces are used for achieving multiple inheritance in Java, while abstract classes are used to define a common behavior for subclasses.

  • Interfac...read more

Add your answer

Q2. What is opps explain in details

Ans.

Object-oriented programming (OOP) is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.

  • OOP focuses on creating objects that interact with each other to solve problems

  • It involves concepts like classes, objects, inheritance, polymorphism, and encapsulation

  • Example: In a banking system, you can have classes like Account, Customer, and Transaction with their respective objects

Add your answer

Q3. What is string and string builder

Ans.

String is a sequence of characters, while StringBuilder is a mutable sequence of characters used for manipulating strings efficiently.

  • String is immutable in Java, meaning once created, it cannot be changed.

  • StringBuilder is mutable and allows for efficient manipulation of strings.

  • String concatenation using '+' operator creates a new string object each time, while StringBuilder's append method modifies the existing object.

  • Use StringBuilder when frequent modifications to strings...read more

Add your answer

Q4. What r the validations used in asp.net

Ans.

ASP.NET uses various validations like RequiredFieldValidator, RangeValidator, RegularExpressionValidator, etc.

  • RequiredFieldValidator - Ensures a field is not left blank

  • RangeValidator - Validates if a value falls within a specified range

  • RegularExpressionValidator - Validates input based on a specified pattern

Add your answer
Discover Infosys interview dos and don'ts from real experiences

Q5. What is API and what are its type

Ans.

API stands for Application Programming Interface. It defines the methods and data formats that applications can use to communicate with each other.

  • APIs can be classified into different types such as RESTful APIs, SOAP APIs, and GraphQL APIs.

  • RESTful APIs use standard HTTP methods like GET, POST, PUT, DELETE to perform operations on resources.

  • SOAP APIs use XML-based messaging protocol for communication between applications.

  • GraphQL APIs allow clients to request only the data the...read more

Add your answer

Q6. What is boxing and unboxing

Ans.

Boxing is the process of converting a value type to a reference type, while unboxing is the opposite process.

  • Boxing is done implicitly by the compiler when a value type is assigned to a reference type variable.

  • Unboxing requires explicit casting to convert a reference type back to a value type.

  • Example: int num = 10; object obj = num; // Boxing

  • Example: int num2 = (int)obj; // Unboxing

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Junior Software Developer Interview Questions from Similar Companies

3.7
 • 11 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
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

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