Explain pass by reference and pass by value?
Answer Posted / aravind
Pass By Reference:
Passing the reference of the variable or object. In java
objects are passed by reference.
Pass By Value:
Passing the copy of the value. In java primitives are
passed by value.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
when should you use stringbuilder class in a program?
Explain public static void main(string args[]) in java.
What is ternary operator? Give an example.
What do you understand by abstract classes?
How do I get a substring?
What is the difference between an if statement and a switch statement?
How to sort a collection of custom Objects in Java?
What is data type example?
What is the difference between multitasking and multithreading in Java
What is casting in java programming?
What's the difference between int and integer in java?
What are controls and their different types in awt?
How do you use find and replace?
How is a variable stored in memory?
How do constructors use this() and super()?