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
How do you use equal in java?
Can bool be null?
What is a methodologist?
What is difference between arraylist and list in java?
What does super keyword do?
Implement a stack with push (), pop() and min() in O(1) time.
Which is easier .net or java?
How can I right-justify a string?
Explain 5 io best practices?
Tell me are there implementations for sorting and searching in the java libarary?
Explain about anonymous inner classes ?
What is the arraylist in java?
Explain about field hiding in java?
What are daemon Threads in java?
Is a class subclass of itself?