Explain pass by reference and pass by value?
Answer Posted / vikas
Pass-by-value means, Passing a copy of the value.
Pass-by-reference means, instead of passing the actual
value, the address(of the value) is passed.
| Is This Answer Correct ? | 19 Yes | 2 No |
Post New Answer View All Answers
What is the difference between processes and threads?
Explain when classnotfoundexception will be raised ?
What's the base class of all exception classes?
What does serializing data mean?
Write a program to check string is palindrome without using loop?
Why is it called boolean?
explain what is transient variable in java?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
Why is it called a string?
Can we call the constructor of a class more than once for an object?
Why synchronization is important?
Which variable is the independent variable?
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
What is anti pattern in java?
What are wrapped classes in java programming?