Add office photos
Employer?
Claim Account for FREE

Nuclei

2.7
based on 22 Reviews
Filter interviews by

Tribe21 Consultancy Services Interview Questions and Answers

Updated 5 Feb 2024

Q1. What is the difference between Spring singletone ans java singletone ?

Ans.

The main difference is that Spring singleton is managed by the Spring container, while Java singleton is managed by the developer.

  • Spring singleton is created and managed by the Spring container, while Java singleton is created and managed by the developer.

  • Spring singleton is a design pattern used in Spring framework to create a single instance of a class, while Java singleton is a design pattern used in Java to create a single instance of a class.

  • Spring singleton is thread-sa...read more

View 1 answer

Q2. what are spring bean scope ?

Ans.

Spring bean scope defines the lifecycle and visibility of a bean in the Spring container.

  • Singleton scope: Only one instance of the bean is created and shared across the application.

  • Prototype scope: A new instance of the bean is created every time it is requested.

  • Request scope: A new instance of the bean is created for each HTTP request.

  • Session scope: A new instance of the bean is created for each HTTP session.

  • Global session scope: Similar to session scope, but for global HTTP...read more

View 1 answer

Q3. explain internal working of hashmap?

Ans.

HashMap is a data structure that stores key-value pairs and uses hashing to provide constant time complexity for basic operations.

  • HashMap internally uses an array of linked lists called buckets to store the key-value pairs.

  • When a key-value pair is added, the hash code of the key is computed and used to determine the index of the bucket.

  • If multiple key-value pairs have the same hash code, they are stored as a linked list in the same bucket.

  • To retrieve a value, the hash code of...read more

View 1 answer

Q4. Singletone is Thread Safe?

Ans.

No

  • Singleton is not inherently thread-safe

  • Multiple threads can access and modify the singleton instance simultaneously

  • To make it thread-safe, synchronization or double-checked locking can be used

  • Alternatively, an enum implementation of singleton is inherently thread-safe

View 1 answer
Discover Tribe21 Consultancy Services interview dos and don'ts from real experiences

Q5. custom implementatoion of optional

Add your answer

Q6. differentiate class and struct

Add your answer

Q7. optionals in iOS

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Top Nuclei Interview Questions And Answers
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