Java is based on pass by reference or pass by value ..
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
What does it mean to be immutable?
How does queue work in java?
What is static binding and where it occurs?
What is pre increment and post increment in java?
What is the access scope of protected access specifier?
How to add panel to a Frame?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
Difference between String and StringBuffer.
Write a java program to check if a number is prime or not?
Explain about public and private access specifiers?
What is the exact difference in between Unicast and Multicast object ?