基本类性时值传递,对象时引用传递
[b][color=red] 但包装类在做值处理时,传递的是值,体现出其代表的基本类型的性质[/color][/b]
[b]Java中的基本类型及其包装器:[/b]
* String-char
* Integer-int
* Boolean-boolean
* Character - char
* Byte - byte
* Short - short
* Long - long
* Float - float
* Double - double
* Void - void
[b][color=red] 但包装类在做值处理时,传递的是值,体现出其代表的基本类型的性质[/color][/b]
[b]Java中的基本类型及其包装器:[/b]
* String-char
* Integer-int
* Boolean-boolean
* Character - char
* Byte - byte
* Short - short
* Long - long
* Float - float
* Double - double
* Void - void