is java support call by reference and call by value, if
supports please explain?
Answer Posted / renjit mathew
ya java support both.In java when u pass a single type to a
method it passes by value.
Call By Reference:-In java objects are passed by
reference.when you create a variable of a class type,you are
only creating a reference to an object.when you pass this
object to a method the parameter that receives it will refer
to the same object as that refered by the argument
| Is This Answer Correct ? | 9 Yes | 10 No |
Post New Answer View All Answers
What is the purpose of the enableevents() method?
What is incompatible types in java?
How to avoid memory leak in java?
What are methods of a class?
Does string isempty check for null?
Explain the importance of join() method in thread class?
What is string [] args?
Why string objects are immutable in java?
Is overriding possible in java?
When do you call copy constructor?
Can two objects have same hashcode?
Are arrays static in java?
What is class forname used for?
What is super?
Can a class have 2 constructors?