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 difference between char array and string?
Is null keyword in java?
What is the size of an array?
How will you get the platform dependent values like line separator, path separator, etc., ?
what is difference between equals and ==?
Why bytecode is called bytecode?
Does java linked list allow duplicates?
What is oop in java?
Explain, java is compatible with all servers but not all browsers?
What is difference between Heap and Stack Memory?
Can we sort list in java?
What is meant by overloading?
What is a control variable example?
Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain
Can constructor be inherited?