当前位置:网站首页>Reference passing 1
Reference passing 1
2022-04-23 08:35:00 【Silence, your name】
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, your name]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230810200328.html
边栏推荐
- Idea: export Yapi interface using easyyapi plug-in
- Type anonyme (Principes fondamentaux du Guide c)
- How to generate assembly file
- 洋桃电子STM32物联网入门30步笔记三、新建CubeIDE工程和设置讲解
- Anonymous type (c Guide Basics)
- Description of the abnormity that the key frame is getting closer and closer in the operation of orb slam
- 关于cin,scanf和getline,getchar,cin.getline的混合使用
- 四张图弄懂matplotlib的一些基本用法
- Excle plus watermark
- vmware 搭建ES8的常见错误
猜你喜欢
idea底栏打开services
CGM optimizes blood glucose monitoring and management -- Yiyu technology appears in Sichuan International Medical Exchange Promotion Association
洋桃电子STM32物联网入门30步笔记四、工程编译和下载
虚拟线上展会-线上vr展馆实现24h沉浸式看展
作文以记之 ~ 二叉树的前序遍历
ansible自动化运维详解(一)ansible的安装部署、参数使用、清单管理、配置文件参数及用户级ansible操作环境构建
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
面了一圈,整理了这套面试题。。
监控智能回放是什么,如何使用智能回放查询录像
根据字节码获取类的绝对路径
随机推荐
JSP page coding
ESP32程序下载失败,提示超时
'恶霸' Oracle 又放大招,各大企业连夜删除 JDK。。。
DOM 学习之—添加+-按钮
数论求a^b(a,b为1e12级别)的因子之和
freertos学习02-队列 stream buffer message buffer
PgSQL wants to implement all kinds of column sub query operations of MySQL
CGM optimizes blood glucose monitoring and management -- Yiyu technology appears in Sichuan International Medical Exchange Promotion Association
[learning] audio and video development from scratch (9) -- nuplayer
Harbor企业级镜像管理系统实战
Ajax cache prevention method
Community group purchase applet source code + interface DIY + nearby leader + supplier + group collage + recipe + second kill + pre-sale + distribution + live broadcast
Talk about the basic but not simple stock data
QFileDialog select multiple files or folders
Stm32f103zet6 [development of standard library functions] - Introduction to library functions
Ansible Automation Operation and Maintenance details (ⅰ) Installation and Deployment, Parameter use, list Management, Profile Parameters and user level ansible operating environment Construction
00后最关注的职业:公务员排第二,第一是?
Idea: export Yapi interface using easyyapi plug-in
Copy array in JS
QT reading and writing XML files