当前位置:网站首页>引用传递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
边栏推荐
- 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
- 信息收集相关知识点及题解
- vmware 搭建ES8的常见错误
- [learning] audio and video development from scratch (9) -- nuplayer
- 对OutputStream类的flush()方法的误解
- [C语言] 文件操作《一》
- 分布式消息中间件框架选型-数字化架构设计(7)
- Shell脚本进阶
- 5.6 comprehensive case - RTU-
- PyQt5开发之QTableWidget表头自定义与美化(附源代码下载)
猜你喜欢

The third divisor of leetcode simple question

输入/输出系统

Overview of bus structure

Description of the abnormity that the key frame is getting closer and closer in the operation of orb slam

Search the complete navigation program source code

Failed to convert a NumPy array to a Tensor(Unsupported Object type int)

PgSQL wants to implement all kinds of column sub query operations of MySQL

一个必看的微信小程序开发指南1-基础知识了解

Asan minimalism

flask项目跨域拦截处理以及dbm数据库学习【包头文创网站开发】
随机推荐
QT compilation qtxlsx Library
input元素添加监听事件
通过实现参数解析器HandlerMethodArgumentResolver接口来自定义注解
虚拟线上展会-线上vr展馆实现24h沉浸式看展
DOM学习笔记---遍历页面所有元素节点
Misunderstanding of flush () method of OutputStream class
Flink SQL实现流批一体
JSP page coding
396. Rotate Function
There are some problems when using numeric type to query string type fields in MySQL
ansible自动化运维详解(一)ansible的安装部署、参数使用、清单管理、配置文件参数及用户级ansible操作环境构建
LeetCode簡單題之計算字符串的數字和
Situational leaders - Chapter 7, solving performance problems
数据的删除和修改操作(mysql)
Navicat remote connection MySQL
Comparison of indoor positioning technology
Failed to convert a NumPy array to a Tensor(Unsupported Object type int)
作文以记之 ~ 二叉树的前序遍历
如何保护开源项目免遭供应链攻击-安全设计(1)
Talk about the basic but not simple stock data