Member Research & Development

Member Research & Development Interview Questions and Answers

Updated 13 Jul 2025
5d ago

Q. In a multi-tiered inheritance scenario, such as class B extending class A, do both classes inherit from the object class separately? Explain.

Ans.

In Java, all classes inherit from Object, forming a single hierarchy regardless of tiers.

  • In Java, every class implicitly extends Object, the root class.

  • When class B extends A, both B and A inherit methods from Object.

  • Example: If A has a method 'toString()', B can override it, but both have access to Object's methods.

  • Inheritance is single in Java; B does not inherit Object separately from A.

1d ago

Q. With Java 8, interfaces have the ability to accommodate static and default methods. Are abstract classes still needed? Why?

Ans.

Abstract classes are still relevant for shared state and constructor logic, despite Java 8's interface enhancements.

  • Abstract classes can have instance variables, while interfaces cannot.

  • Example: An abstract class 'Animal' can have a 'species' field.

  • Abstract classes can provide constructors, allowing initialization of state.

  • Example: 'Vehicle' abstract class can have a constructor to set 'maxSpeed'.

  • Interfaces are limited to method signatures and default/static methods.

  • Abstract ...read more

2d ago

Q. Give a real-life example of implementing interfaces versus abstract classes.

Ans.

Implementing interfaces vs abstract classes in real life

  • Interfaces are useful when implementing multiple inheritance in Java

  • Abstract classes are useful when creating a base class with some implementation

  • Example of interface: implementing Runnable interface in a class to create a thread

  • Example of abstract class: creating a base class for different types of vehicles

1d ago

Q. Can you provide an example of Singleton pattern implementation in Java?

Ans.

Singleton pattern ensures only one instance of a class is created and provides a global point of access to it.

  • Private constructor to restrict object creation

  • Private static instance variable to hold the single instance

  • Public static method to get the instance

  • Lazy initialization or eager initialization

  • Thread-safe implementation using synchronized keyword or static block

  • Examples: java.lang.Runtime, java.awt.Desktop, java.util.Calendar

Are these interview questions helpful?
6d ago

Q. How would you sort map entries based on value?

Ans.

Sort map entries based on value

  • Use a TreeMap to sort the entries based on value

  • Implement a Comparator to compare the values

  • Convert the TreeMap to a LinkedHashMap to maintain the order of insertion

3d ago

Q. SOLID design principles

Ans.

SOLID design principles are a set of guidelines for writing maintainable and scalable code.

  • S - Single Responsibility Principle: A class should have only one reason to change.

  • O - Open/Closed Principle: A class should be open for extension but closed for modification.

  • L - Liskov Substitution Principle: Subtypes should be substitutable for their base types.

  • I - Interface Segregation Principle: A client should not be forced to depend on methods it does not use.

  • D - Dependency Invers...read more

Asked in Force Motors

6d ago

Q. Law of Thermodynamics

Ans.

The laws of thermodynamics describe the behavior of energy in physical systems.

  • The first law of thermodynamics states that energy cannot be created or destroyed, only transferred or converted.

  • The second law of thermodynamics states that the entropy of an isolated system always increases over time.

  • The third law of thermodynamics states that as the temperature approaches absolute zero, the entropy of a system approaches a minimum value.

  • Thermodynamics is used in various fields s...read more

Interview Experiences of Popular Companies

TVS Motor Logo
3.9
 • 351 Interviews
View all
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Member Research & Development Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits