|
regards, Amit
coffee drinker and Sun Certified Programmer for Java 2 Platform
Originally posted by amit mawkin:
[B]please can somebody explain me the flow
1) 10030
2) 20030
3) 209930
4) 10020
[/B]
Originally posted by amit mawkin:
[B]please can somebody explain me the flow
1) 10030
2) 20030
3) 209930
4) 10020
[/B]
Matthew Phillips
regards, Amit
coffee drinker and Sun Certified Programmer for Java 2 Platform
regards, Amit
coffee drinker and Sun Certified Programmer for Java 2 Platform
Originally posted by amit mawkin:
Matthew
one last doubt the value of i passed to another is the local value correct me if ia m wrong.
Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
regards, Amit
coffee drinker and Sun Certified Programmer for Java 2 Platform
reference variables are passed by value
the 'value' of a reference variable is the memory address of the object it references
a method can change the original object but not the reference to the object
Originally posted by Matt Wheeler:
. . . its reference is also changed in the calling method isnt't it? <snipped for brevety>
Matthew Phillips
Think Big . So shall you become big.
Originally posted by MONZY THARIAN:
Thanks to all for such a detail explanation.
Some of the imp thinks to remember is that in Java variable cannot be pass by reference.
But a variable is PASS BY REFEREBCE BY VALUE , where a copy of the variable is created
CHEERS.
"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
I love JavaRanch!
Politics is a circus designed to distract you from what is really going on. So is this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|