Add office photos
Premium Employer

Impetus Technologies

3.5
based on 452 Reviews
Filter interviews by

Fidelity International Interview Questions and Answers

Updated 17 Dec 2024
Popular Designations

Q1. Overloading with different return type allowed or not

Ans.

Overloading with different return type is not allowed in Java.

  • Overloading is based on method signature, not return type

  • Methods with same name and different return type will result in compile-time error

  • Example: int add(int a, int b) and double add(int a, int b) is not allowed

Add your answer

Q2. How to remove duplicates from string

Ans.

Use a set to remove duplicates from a string array.

  • Create a set to store unique strings.

  • Iterate through the array and add each string to the set.

  • Convert the set back to an array to get the unique strings.

Add your answer

Q3. How to achieve authentication in web API

Ans.

Authentication in web API is achieved by using tokens or API keys to verify the identity of users.

  • Use tokens (such as JWT) to authenticate users

  • Implement OAuth for secure authentication

  • Utilize API keys for authentication purposes

Add your answer

Q4. Sealed virtual static new keyword use

Ans.

Sealed virtual static new keywords are used in C# to control inheritance and method hiding.

  • Sealed keyword prevents a class from being inherited.

  • Virtual keyword allows a method to be overridden in derived classes.

  • Static keyword makes a member of a class accessible without creating an instance of the class.

  • New keyword hides a method from the base class in the derived class.

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

Q5. Diff interface vs abstract class

Ans.

Interface defines a contract for classes to implement, while abstract class 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 to achieve multiple inheritance in Java, while abstract classes are used to provide a common base for subclasses.

Add your answer

Q6. Diff string string builder

Ans.

Diff string string builder compares two strings and returns the differences.

  • Use a loop to iterate through each character of the strings

  • Compare characters at the same index in both strings

  • Build a new string with the differing characters

Add your answer

Q7. Diff array vs array list

Ans.

Arrays are fixed in size, while ArrayLists can dynamically resize.

  • Arrays have a fixed size determined at initialization, while ArrayLists can dynamically resize.

  • Arrays are faster for accessing elements, while ArrayLists are better for adding or removing elements.

  • Arrays use [] syntax for accessing elements, while ArrayLists use get() and set() methods.

  • Arrays can only store primitive types, while ArrayLists can store objects.

Add your answer

Q8. Diff = vs .equal

Ans.

Diff method compares values of two objects while equal method compares references of two objects.

  • Diff method compares values of two objects, while equal method compares references.

  • Diff method is used to check if two objects are different, while equal method is used to check if two objects are the same.

  • Example: obj1.diff(obj2) vs obj1.equal(obj2)

Add your answer

Q9. Four pillars of OOPS

Ans.

Encapsulation, Inheritance, Polymorphism, Abstraction

  • Encapsulation: Bundling data and methods that operate on the data into a single unit

  • Inheritance: Ability of a class to inherit properties and behavior from another class

  • Polymorphism: Ability to present the same interface for different data types

  • Abstraction: Hiding the complex implementation details and showing only the necessary features

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 Lead Software Engineer Interview Questions from Similar Companies

4.0
 • 16 Interview Questions
3.5
 • 15 Interview Questions
3.5
 • 13 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