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 a char in java?
What is the difference between and ?
What is the default size of arraylist in java?
how would you implement a thread pool? : Java thread
What are the four corner stones of oop?
Can a constructor have different name than a class name in java?
Can a class extend more than one class?
Which collections are thread safe in java?
How many threads does a core java have?
What is java Applet?
What is string and example?
What is java thread dump, how can we get java thread dump of a program?
What are thread safe functions?
how its run?
Where is java located?