Java is based on pass by reference or pass by value ..
Answer Posted / 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 |
Post New Answer View All Answers
What is a string token?
What is return data type?
What restrictions are placed on method overriding?
Why we use multi threading instead of multiprocessing?
Explain wait() method of object class ?
What comes to mind when someone mentions a shallow copy in java?
Why pointers are not used in java?
which class is the wait() method defined in? : Java thread
What is return null in java?
what is the purpose of using rmisecuritymanager in rmi?
What is externalizable?
What is a singleton class? Give a practical example of its usage.
What is the type of lambda expression?
Is list ordered in java?
What is a for loop in java?