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
How to perform quicksort in java?
What is rule of accessibility in java?
What is difference between float and double?
How do you identify independent and dependent variables?
What is the use of accept () method in java?
What is the java project architecture?
What are the fileinputstream and fileoutputstream?
What are the five major types of reference sources?
What makes a function well defined?
How java enabled high performance?
What is a finally block? Is there a case when finally will not execute?
How does a for loop work java?
Difference between abstract and concrete class ?
Can you tell me range of byte?
Can a static class have a constructor?