---
title: "Discussion on \"Demonstration of  passing object reference by value as parameter in java methods    .\" | Hashnode"
description: "Discussion on \"Demonstration of  passing object reference by value as parameter in java methods    .\". ATTEMPTING TO REASSIGN OBJECT .\nIf you reassign an object reference inside java method it do not affect the original state of object outside that method .Below is an demonstration ,that shows java passes object reference by value .\npublic class n {\n ..."
url: "https://hashnode.com/posts/demonstration-of-passing-object-reference-by-value-as-parameter-in-java-methods/66865359525eb8ee8fb083ab"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Demonstration of passing object reference by value as parameter in java methods .](https://setter.hashnode.dev/demonstration-of-passing-object-reference-by-value-as-parameter-in-java-methods?utm_source=hashnode&utm_medium=feed)

ATTEMPTING TO REASSIGN OBJECT . If you reassign an object reference inside java method it do not affect the original state of object outside that method .Below is an demonstration ,that shows java passes object reference by value . public class n { ...

Jul 4, 2024 · 2 min read · setter.hashnode.dev  
Read the article

## Written by

[kartik sharma](https://hashnode.com/@kartiksharma3)

@kartiksharma3

  
[View profile](https://hashnode.com/@kartiksharma3)

I am a leader with devloping skills

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
