DSRC
10+ Infosys Interview Questions and Answers
Q1. what is the difference between finalize() and dispose() method?
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
Q2. advantage of WPF.why we use WPF?
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
Q3. explain data ABstraction,inheritance,encapsulation,interface,polimorphism?
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
Q4. what is Array.clone and Array.Copytto?
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
Q5. what is is and as operator?
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;
Q6. why we use Triggers in WPF?
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
Q7. what is serialization?
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.
Q8. what is boxing and unboxing?
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.
Q9. dependency property in WPF?
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
Q10. data binding concepts in WPF?
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:
Q11. Attached property in WPF
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.
Top Senior Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month