Total members 11895 |It is currently Thu Dec 26, 2024 4:38 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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




Author:
Newbie
User avatar Posts: 17
Have thanks: 0 time

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

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time

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 ;)


Author:
Newbie
User avatar Posts: 17
Have thanks: 0 time
Post new topic Reply to topic  [ 3 posts ] 

  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     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com