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
Differences between traditional programming language and object oriented programming language?
How do you compare objects in java?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
What are 3 data types?
What is run time allocation?
What is immutable in java?
What is type safety in java?
Explain about data types?
Write a factorial program using recursion in java?
What is the locale class in java programming?
Can I learn java without any programming experience?
Who found java?
What is difference between overloading and overriding in java?
What are different types of classloaders?
What method is used to specify a container's layout in java programming?