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 can we make sure main() is the last thread to finish in java program?
why would you use a synchronized block vs. Synchronized method? : Java thread
What is the console in java?
Is stringwriter thread safe?
What is square root in java?
What is the collections api in java programming?
How do you identify independent and dependent variables?
What is argument in java?
When is the garbage collection used in Java?
How do you implement polymorphism in our day to day life?
explain multi-threading in java?
Why constructor has no return type?
What is string value?
What is the largest data type in java?
What value is a variable of the string type automatically initialized?