Java is based on pass by reference or pass by value ..
Answer Posted / sanket mehta
Java does not support call by reference because in call by reference we need to pass the address and address are stored in pointers n java does not support pointers and it is because pointers breaks the security. Java is always pass-by-value. Pass by reference in java means the passing the address itself
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the covariant return type?
how can you catch multiple exceptions in java?
Why char array is preferred over string for storing password?
How do you test a method for an exception using junit?
What is the base class in java from which all classes are derived?
Does list allow duplicates in java?
Can you sort a list in java?
Does constructor be static?
What is difference between identifier and variable?
Can java object be locked down for exclusive use by a given thread?
What is an example of a boolean?
What is a nullable field?
How garbage collection is done in java?
What happens if we don’t override run method ?
What is return type in java?