Add office photos
Employer?
Claim Account for FREE

MUFG

3.2
based on 34 Reviews
Filter interviews by

Rafiki Marketing Interview Questions and Answers

Updated 4 Jul 2024

Q1. How to ensure we use the bean before it is destroyed

Ans.

Use a bean before it is destroyed by implementing a pre-destroy method

  • Implement a method annotated with @PreDestroy in the bean class

  • This method will be called before the bean is destroyed

  • Perform any necessary cleanup or final operations in this method

Add your answer

Q2. How to apply multiple primary keys to an entity in Hibernate

Ans.

Use @IdClass annotation to apply multiple primary keys to an entity in Hibernate

  • Create a separate class for composite primary key

  • Use @IdClass annotation on the entity class to reference the composite primary key class

  • Define the primary key fields in both the entity class and the composite primary key class

Add your answer

Q3. Functional interface - what is use of static and default in real time

Ans.

Static and default methods in functional interfaces provide utility methods and default implementations for interface methods in real-time applications.

  • Static methods in functional interfaces can be used for utility methods that are not tied to a specific instance of the interface.

  • Default methods in functional interfaces provide default implementations for interface methods, allowing for backward compatibility when new methods are added to the interface.

  • In real-time applicati...read more

Add your answer

Q4. Stream api - what is intermediate and terminal operator

Ans.

Intermediate operators transform or filter the stream elements, while terminal operators produce a result or side effect.

  • Intermediate operators include filter(), map(), sorted(), distinct(), etc.

  • Terminal operators include forEach(), collect(), reduce(), count(), etc.

  • Intermediate operators are lazy and do not execute until a terminal operator is called.

  • Terminal operators trigger the stream processing and produce a result or side effect.

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

Q5. How to use a POJO as a key in a Hashmap

Ans.

Use the POJO's attributes that define equals() and hashCode() methods as the key in the Hashmap.

  • Ensure the POJO class overrides equals() and hashCode() methods.

  • Create an instance of the POJO and use it as the key in the Hashmap.

Add your answer

Q6. Call SQL procedure from code

Ans.

To call an SQL procedure from code, use the appropriate syntax and connection to the database.

  • Use the appropriate SQL command to call the procedure (e.g. EXEC or CALL).

  • Ensure you have a connection to the database established in your code.

  • Pass any required parameters to the procedure when calling it.

  • Handle any return values or output parameters as needed.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Rafiki Marketing

based on 1 interviews
Interview experience
3.0
Average
View more
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
 • 13 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

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