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
What is private public protected in java?
What is the purpose of using bufferedinputstream and bufferedoutputstream classes?
worst case complexities of Quick sort and Merge sort.
Can we convert integer to string in java?
How do singleton patterns work?
Why object class is super class for every class in java?
Explain differences between collection api and stream api?
Why inputstreamreader is used in java?
How many types of methods are there in java?
what is the significance of listiterator in java?
Can a main method be overloaded?
What happens if an exception is throws from an object's constructor?
what is mena by object block any what is the use of that
What do you mean by of string::valueof expression in java 8?
Does .length start 0 java?