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 |
In Inheritance if we are implementing Multi level inheritance and all class having same name of variable and now i want to access each class variable and how it is possible?
What is join () in java?
Is nan false?
What are inner classes or non static nested classes in java?
How do you download stubs from Remote place?
How define set in java?
What is difference between array and arraylist in java?
Is java hard to learn?
what is thread? What are the high-level thread states? : Java thread
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
Can we increase size of array?
Explain creating threads by implementing runnable class?