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 meant by class loader? How many types are there?
What is the symbol for average?
What is java jit compilers?
What is flag in python?
What are the steps involved to create a bean?
Can we use both this () and super () in a constructor?
How many bits is a boolean?
Is java an open source?
Which is faster set or list in java?
Why are there no global variables in java?
What kind of variables can a class consist?
Is final static java?
Which collection is sorted in java?
Explain about object oriented programming and its features?
What do you mean by constant time complexity?