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 does java pattern compile work?
Can we use string in the switch case?
Can we override singleton class?
How do I know if java is installed?
What is difference between static variable and global variable?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
What is dynamic binding(late binding)?
Can we clone singleton class in java?
What is a void in java?
What are java packages?
How many bytes is a unicode character?
What are the types of relation?
What is difference between fail-fast and fail-safe?
What is subsequence of a string?
Is 9 a prime number?