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 difference between path and classpath?
What are implicit objects in java?
Can static methods access instance variables in java?
What are access specifiers in java ?
Why for each loop is used?
What is object in java?
What are the features of java?
Write a program to print fibonacci series
What is the maximum size of list in java?
What is the difference between stored procedure & function?
what is a green thread? : Java thread
Why should I use abstract class?
what is the messsage u r going to get from an objectoriented programing?
Explain java heap space and garbage collection?
What is a default constructor and also define copy contrucyor?