MockQuestions

Amazon Java Developer Mock Interview

Question 17 of 20 for our Amazon Java Developer Mock Interview

Get More Information About Our Amazon Interview Questions

Question 17 of 20

In your opinion, Is Java Pass By Value or Pass By Reference?

You may note that this question asks you for your opinion, even though it is technical. Not all technical questions have finite answers. Some may be relevant to the work you do or the type of experience you have writing programs. It is okay to state an opinion about a topic as long as you can support your answer. When asked a question of this type during the interview with Amazon, you can anticipate follow-up questions asking why you believe this to be the right answer.

Next Question

How to Answer: In your opinion, Is Java Pass By Value or Pass By Reference?

Advice and answer examples written specifically for an Amazon job interview.

  • 17. In your opinion, Is Java Pass By Value or Pass By Reference?

      How to Answer

      You may note that this question asks you for your opinion, even though it is technical. Not all technical questions have finite answers. Some may be relevant to the work you do or the type of experience you have writing programs. It is okay to state an opinion about a topic as long as you can support your answer. When asked a question of this type during the interview with Amazon, you can anticipate follow-up questions asking why you believe this to be the right answer.

      Answer Example

      "This is an interesting question. If you ask the current Java developers working here at Amazon, some will say that Java is pass by value, while the others will say pass by reference. In my opinion, Java is pass by value. This is how it is defined in the Java Spec. Java method parameters directly associate variable passing and method calling. The exception is when we pass a reference of complex types defined as method parameters, the memory address is copied to a new reference variable."