Hi,Arrays are objects in java. If an actual parameter is a reference to an object, then the reference value of the object is passed. Thus, both the actual and formal parameters(in this case array) are aliasest to same object when method is invoked and changes made to the object in the method will reflect back when the method call returns. Hope this helps. Best Regards, Chetan
On Thu, Jan 22, 2009 at 11:42 AM, Jose Dueñas <[email protected]> wrote: > Hi!I'm wondering if it's possible to pass-by-value an array to a method? > > Thanks. > Jose > > -- > > /**************************************************/ > Jose Maria Dueñas Quesada > e-mail: [email protected] > web: www.joseduenas.com > /**************************************************/ > > Computer science is not about computers any more than astronomy is about > telescopes. -- E.Dijkstra > > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
