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 the difference between heap memory and stack memory?
What is the differences between c++ and java? Explain
Why super is first line in java?
a thread is runnable, how does that work? : Java thread
How do you delete a list in java?
What is the best way to findout the time/memory consuming process?
is it possible to instantiate the math class?
'A class is a template for an object' explain this statement.
Explain the importance of throws keyword in java?
What is variable explain with example?
What are inbuilt functions?
Why to use nested classes in java? (Or) what is the purpose of nested class in java?
How do you read a char in java?
Explain about strings in java?
Can list be null in java?