Explain pass by reference and pass by value?
Answer Posted / dsr
The changes made in formal parameters will reflet to the
actual parameters.This is Known as pass by value.
The changes made in formal parameters will not reflet to
the actual parameters.This is Known as pass by reference.
java is completely pass by value.
| Is This Answer Correct ? | 1 Yes | 9 No |
Post New Answer View All Answers
What is the difference between actual and formal parameters?
Can a static block throw exception?
What does main method?
What are jee technologies?
What do bitwise operators do?
What is the purpose of void?
What is the difference between path and classpath variables?
Can a private method be declared as static?
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?
Can we rethrow the same exception from catch handler?
What is meant by local variable and instance variable?
What is an array length?
What is singleton class example?
What is data object example?
Why is a constant variable important?