Add office photos
Employer?
Claim Account for FREE

DSRC

3.8
based on 43 Reviews
Filter interviews by

10+ Infosys Interview Questions and Answers

Updated 5 Feb 2024

Q1. what is the difference between finalize() and dispose() method?

Ans.

finalize() is a method in Java used for cleanup operations before an object is garbage collected, while dispose() is a method used for releasing unmanaged resources in .NET.

  • finalize() is a method in Java that is called by the garbage collector before an object is reclaimed. It is used for cleanup operations like closing files or releasing resources.

  • dispose() is a method in .NET that is used for releasing unmanaged resources like file handles or database connections. It is typ...read more

Add your answer

Q2. advantage of WPF.why we use WPF?

Ans.

WPF provides a powerful framework for building modern, interactive desktop applications.

  • Rich user interface capabilities with customizable controls

  • Data binding support for easy synchronization of UI with underlying data

  • Support for animations, styles, templates, and multimedia

  • Integration with XAML for declarative UI design

  • Scalability and performance optimizations for handling large datasets

  • Ability to create responsive and visually appealing applications

Add your answer

Q3. explain data ABstraction,inheritance,encapsulation,interface,polimorphism?

Ans.

Data abstraction, inheritance, encapsulation, interface, and polymorphism are key concepts in object-oriented programming.

  • Data abstraction focuses on hiding the implementation details and showing only the necessary information to the user.

  • Inheritance allows a class to inherit properties and behavior from another class.

  • Encapsulation involves bundling data and methods that operate on the data into a single unit.

  • Interfaces define a contract for classes to implement certain metho...read more

Add your answer

Q4. what is Array.clone and Array.Copytto?

Ans.

Array.clone creates a shallow copy of an array, while Array.CopyTo copies elements from one array to another.

  • Array.clone creates a shallow copy of an array, meaning it creates a new array with the same elements as the original array.

  • Array.CopyTo copies elements from one array to another array. It takes two parameters - the source array and the destination array.

  • Example: string[] originalArray = {"apple", "banana", "cherry"}; string[] clonedArray = (string[])originalArray.Clon...read more

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

Q5. what is is and as operator?

Ans.

The 'is' and 'as' operators are used in C# to check the type of an object and perform type casting respectively.

  • The 'is' operator checks if an object is of a certain type and returns a boolean value.

  • The 'as' operator performs a safe type conversion and returns null if the conversion is not possible.

  • Example: if(obj is MyClass) { // do something }

  • Example: MyClass myObj = obj as MyClass;

Add your answer

Q6. why we use Triggers in WPF?

Ans.

Triggers in WPF are used to change the appearance or behavior of a control in response to a specific event or condition.

  • Triggers allow you to define changes to a control's properties based on certain conditions.

  • They can be used to change the visual state of a control in response to user interactions or data changes.

  • Triggers can be defined in XAML and are commonly used for animations, data validation, and styling.

  • For example, you can use a trigger to change the background colo...read more

Add your answer
Are these interview questions helpful?

Q7. what is serialization?

Ans.

Serialization is the process of converting an object into a format that can be easily stored or transmitted.

  • Serialization is used to convert complex data structures or objects into a stream of bytes for storage or transmission.

  • It allows the object to be reconstructed later by deserialization.

  • Common formats for serialization include JSON, XML, and binary formats like Protocol Buffers.

  • Example: Converting a Java object into JSON string for storage in a database.

Add your answer

Q8. what is boxing and unboxing?

Ans.

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

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

  • Unboxing requires explicit casting from the object type to the original value type.

  • Boxing and unboxing can impact performance as they involve memory allocation and type conversions.

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. dependency property in WPF?

Ans.

Dependency property is a specialized type of property in WPF that allows for data binding, styling, and animation.

  • Used for data binding, styling, and animation in WPF

  • Supports value inheritance, change notification, and default values

  • Defined as static fields in a class using DependencyProperty.Register method

Add your answer

Q10. data binding concepts in WPF?

Ans.

Data binding in WPF allows synchronization of data between UI elements and data sources.

  • Data binding can be done using XAML markup or code-behind

  • Types of data binding include one-way, two-way, and one-time

  • Data binding can be used to bind UI elements to properties of data objects

  • Example:

Add your answer

Q11. Attached property in WPF

Ans.

Attached properties in WPF allow you to attach a value to an element that can be inherited by its children.

  • Attached properties are defined as static fields in a class and registered using the DependencyProperty.RegisterAttached method.

  • They are typically used to provide additional functionality to existing controls without subclassing them.

  • An example of an attached property is Grid.Row, which is used to specify the row in a Grid control where an element should be placed.

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 Senior Software Developer Interview Questions from Similar Companies

3.8
 • 24 Interview Questions
3.6
 • 21 Interview Questions
3.8
 • 17 Interview Questions
3.8
 • 16 Interview Questions
4.4
 • 16 Interview Questions
4.2
 • 12 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