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 downcasting?
Can we create an object of static class in java?
What is numeric data type?
What is substring 1 in java?
What is the difference between a scrollbar and a scrollpane?
Difference between keyword and identifier.
What is finalize() function in java?
What is the symbol for line break?
Explain about the dynamic behavior of core java?
How do you sort data in java?
How do you add an arraylist to an array in java?
What are the approaches that you will follow for making a program very efficient?
Is null a string in java?
What is the char data type?
What if static is removed from main method?