Why java is said to be pass-by-value ?

Why java is said to be pass-by-value ?

Java is strictly pass-by-value. A common misconception exists that parameters in Java are passed by reference. They are not. Parameters are passed by value. Java doesn\'t pass method arguments by reference, it passes them by value i.e. it simply copies the bit pattern holding by the references.

By:Jalees
Date:2015-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher