Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

Re: Method Parameters,,,is it by value or reference???

Thu Jun 07, 2007 6:59 pm

very cool article
there is an exception for Objects when you send Wrapper Object it still like primitive and the value not change
the reason is Wrapper Objects are immutable object so you cannot modify them after instantiation

actually pass by reference its not a good idea
because its not readable & hard in maintenance and its not follow OO



Re: Method Parameters,,,is it by value or reference???

Thu Jun 07, 2007 7:06 pm

Xline wrote:very cool article
there is an exception for Objects when you send Wrapper Object it still like primitive and the value not change
the reason is Wrapper Objects are immutable object so you cannot modify them after instantiation

actually pass by reference its not a good idea
because its not readable & hard in maintenance and its not follow OO


Useful reply Xline :D

Re: Method Parameters,,,is it by value or reference???

Thu Jun 07, 2007 7:13 pm

thanks msi_33

actually nice forum and nice members ,
for sure every body watch the forum (specially JAVA forum ) will share his knowledge and join us ;)

Post a reply
  Related Posts  to : Method Parameters,,,is it by value or reference???
 Reference Parameters     -  
 method with a variable number of parameters     -  
 pass parameters to main method args[] variables     -  
 How to get reference of object which calls the method?     -  
 object reference be cast to an interface reference     -  
 Encoding parameters in URL     -  
 Function with default parameters     -  
 Send parameters using HTTP GET     -  
 Post parameters using JQuery     -  
 get url, title and url sent parameters with JQuery     -