Java is based on pass by reference or pass by value ..

Answers were Sorted based on User's Feedback



Java is based on pass by reference or pass by value ....

Answer / eyal roth

Pass by value.

Is This Answer Correct ?    15 Yes 4 No

Java is based on pass by reference or pass by value ....

Answer / venkatesh

Java supports both Pass By Value and Pass By Reference
Pass By Value: In Java method pass value , changed value is
visible within a method, it will not effect outside of the
method

Pass By Reference: Pass Java Object in method , changed
value will be available outside of method also.

Is This Answer Correct ?    9 Yes 5 No

Java is based on pass by reference or pass by value ....

Answer / arun

Java is actually pass-by-value for all variables running
within a single
VM. Pass-by-value means pass-by-variable-value. And that
means, pass-by-copy-of-
the-variable!

Is This Answer Correct ?    1 Yes 0 No

Java is based on pass by reference or pass by value ....

Answer / dheeraj pareek

Java is purely based on "Pass-by-value".
Variables are passed by value, and in case of Object, object reference is passed by value.

Is This Answer Correct ?    0 Yes 0 No

Java is based on pass by reference or pass by value ....

Answer / sanket mehta

Java does not support call by reference because in call by reference we need to pass the address and address are stored in pointers n java does not support pointers and it is because pointers breaks the security. Java is always pass-by-value. Pass by reference in java means the passing the address itself

Is This Answer Correct ?    0 Yes 0 No

Java is based on pass by reference or pass by value ....

Answer / guest

by reference.

Is This Answer Correct ?    3 Yes 13 No

Post New Answer

More Core Java Interview Questions

Why stringbuilder is not thread safe in java?

1 Answers  


What is the memory leak in java?

1 Answers  


Can you explain the meaning of aggregation and composition

1 Answers  


What are the two ways of implementing multi-threading in java?

2 Answers  


What is e java?

1 Answers  


What happens when you add a double value to a string?

1 Answers  


What is array class in java?

1 Answers  


What is the ==?

1 Answers  


what is meant by string pooling?

12 Answers   Oracle, Polaris, Tribal Fusion, Wipro,


How many ways can you break a singleton class in java?

1 Answers  


Why enumeration is faster than iterator?

1 Answers  


How do singleton patterns work?

1 Answers  


Categories