Explain pass by reference and pass by value?
Answer Posted / chinmay
passing the value instead of reference is known as pass by value,here primitive data should be given...
now pass by reference
Demo d=new Demo("abc");
Demo c=b;
here we pass the reference instead of value..
it is called pass by reference
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is a finally block? Is there a case when finally will not execute?
Can I uninstall java?
What is final method?
What is java util collection?
What is the purpose of the system class in java?
Explain about arraylist?
What is a substitution variable?
Give few examples of final classes defined in Java API?
What is == and === in javascript?
How do you sort in java?
When do we use hashset over treeset?
What does it mean to flush a file?
What are access specifiers in java ?
Why are variables important in research?
what is aggregation in java?