Add office photos
Employer?
Claim Account for FREE

Morgan Stanley

3.7
based on 1.5k Reviews
Filter interviews by

Amazon Interview Questions and Answers

Updated 26 Oct 2024
Popular Designations
Q1. Find the maximum element in the array after update operations.

You have been given an array/list ‘A’ consisting of ‘N’ integers all of which are ‘0’ initially. You are given an array/list ‘ARR’ consisting of ‘M’...read more

View 3 more answers
Q2. Java Question

Why do we need to override equals and hashcode methods in Java?

Add your answer
Q3. OS Question

Print even and odd numbers in increasing order using two threads in Java

Add your answer
Q4. Java Question

Internal working of hash map in Java

Add your answer
Discover Amazon interview dos and don'ts from real experiences
Q5. Java Question

Internal working of CopyOnWrite ArrayList ?

Add your answer
Q6. Java Question

Differences between Synchronized Collection and Concurrent Collection in Java

Add your answer

Q7. Reverse string with spaces but keep the space position intact

Ans.

Reverse a string while keeping the position of spaces intact

  • Split the string into an array of characters

  • Iterate through the array and reverse the characters while keeping track of space positions

  • Join the array back into a string

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 Java Developer Interview Questions from Similar Companies

3.7
 • 167 Interview Questions
3.9
 • 41 Interview Questions
3.9
 • 20 Interview Questions
4.0
 • 14 Interview Questions
3.3
 • 11 Interview Questions
3.7
 • 10 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