当前位置:网站首页>引用传递1
引用传递1
2022-04-23 08:10:00 【Silence丶你的名字】
package cn.silence.thread;
import cn.silence.model.User;
public class Demo3 {
public static void main(String[] args) {
User aaa = new User("aaa");
method1(aaa);
System.out.println("22222222222 = " + aaa);
}
private static void method1(User aaa) {
aaa = new User("bbb");
System.out.println(aaa);
}
}
package cn.silence.thread; public class Demo4 { public static void main(String[] args) { String aa = " aa"; method1(aa); System.out.println("aa = " + aa); } private static void method1(String aa) { aa="bb"; } }
版权声明
本文为[Silence丶你的名字]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_42553504/article/details/124096216
边栏推荐
- The third divisor of leetcode simple question
- SYS_ CONNECT_ BY_ Path (column, 'char') combined with start with connect by prior
- Large amount of data submitted by form post
- LINQ学习系列-----1.4 匿名对象
- Copy array in JS
- An example of network communication based on TCP / IP protocol -- file transmission
- 作文以记之 ~ 二叉树的前序遍历
- 【深度好文】Flink SQL流批⼀体化技术详解(一)
- 输入/输出系统
- Trust uses Tokio's notify and timeout to achieve the effect similar to the timeout condition variable
猜你喜欢
Qt编译QtXlsx库
There are some problems when using numeric type to query string type fields in MySQL
LeetCode-199-二叉树的右视图
一个必看的微信小程序开发指南1-基础知识了解
[C语言] 文件操作《一》
RPC procedure
Detailed explanation of ansible automatic operation and maintenance (I) installation and deployment, parameter use, list management, configuration file parameters and user level ansible operating envi
Using qlst excel file
Install MySQL for Ubuntu and query the average score
CGM optimizes blood glucose monitoring and management -- Yiyu technology appears in Sichuan International Medical Exchange Promotion Association
随机推荐
SYS_CONNECT_BY_PATH(column,'char') 结合 start with ... connect by prior
396. Rotate Function
A simple theme of Typecho with beautiful appearance_ Scarfskin source code download
Qt读取路径下所有文件或指定类型文件(含递归、判断是否为空、创建路径)
万物互联下如何对设备进行加密
LeetCode-199-二叉树的右视图
Campus transfer second-hand market source code download
Ansible Automation Operation and Maintenance details (ⅰ) Installation and Deployment, Parameter use, list Management, Profile Parameters and user level ansible operating environment Construction
vslam PPT
Detailed explanation of ansible automatic operation and maintenance (I) installation and deployment, parameter use, list management, configuration file parameters and user level ansible operating envi
信息收集相关知识点及题解
Sword finger offer Day24 math (medium)
An idea plug-in that doesn't work, but can install X
耳穴诊疗随笔0421
对li类数组对象随机添加特性,并进行排序
My heart's broken! A woman's circle of friends envied others for paying wages on time and was fired. Even her colleagues who liked her were fired together
让地球少些“碳”息 度能在路上
JS common array methods
基于TCP/IP协议的网络通信实例——文件传输
Shell script advanced