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 e in java?
Explain the difference between hashmap and hashtable in java?
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?
What is a double?
How is final different from finally and finalize?
Are true and false keywords?
What is the size of an array?
Whats the difference between notify() and notifyall()?
What is the maximum size of a string in java?
What do you understand by abstract classes?
Why do we need singleton class?
What is implicit object in java?
Does string is thread-safe in java?
What is hashset in java?
What is indexof?