Explain pass by reference and pass by value?
Answer Posted / srikanth doki
Passing the reference of the variable rather than passing
the value is known as Pass-by-reference and Passing the copy
of value is known as Pass-by-value.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is Enum in Java?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
What are the various access specifiers in java?
What is the difference between static method and instance method in Java?
Can I use % with real numbers?
What is a ternary operator in java? What is an interface?
What is difference between string and stringbuffer?
How do I enable java in safari?
Implement two stacks using a single array.
What is arraylist e?
Can you override private or static method in java?
Why use string handling in Java?
Will set allow duplicates in java?
Define array. Tell me about 2-D array.
when should you use stringbuilder class in a program?