pass by reference in java

is there "pass by reference in java(core)" ????

Page 1 of 1

2 Replies - 2073 Views - Last Post: 19 May 2009 - 11:44 AM Rate Topic: -----

#1 k.abhinav1301   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 16-April 09

pass by reference in java

Post icon  Posted 19 May 2009 - 11:33 AM

i want to know that in java pass by reference is available or not ie., "java not supports the concept of pass by reference" it is only a myth or it is true .
Is This A Good Question/Topic? 0
  • +

Replies To: pass by reference in java

#2 KYA   User is offline

  • Wubba lubba dub dub!
  • member icon

Reputation: 3207
  • View blog
  • Posts: 19,239
  • Joined: 14-September 07

Re: pass by reference in java

Posted 19 May 2009 - 11:37 AM

In java, everything is pass by value.
Was This Post Helpful? 0
  • +
  • -

#3 g00se   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3650
  • View blog
  • Posts: 16,773
  • Joined: 20-September 08

Re: pass by reference in java

Posted 19 May 2009 - 11:44 AM

KYA is quite right. You can simulate passing by reference using arrays, but even that's really passing by value
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1