当前位置:网站首页>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
边栏推荐
- 关于cin,scanf和getline,getchar,cin.getline的混合使用
- Generate and parse tokens using JWT
- 分组背包呀
- ansible自动化运维详解(一)ansible的安装部署、参数使用、清单管理、配置文件参数及用户级ansible操作环境构建
- Misunderstanding of flush () method of OutputStream class
- 'bully' Oracle enlarged its move again, and major enterprises deleted JDK overnight...
- STM32使用HAL库,整体结构和函数原理介绍
- 程序,进程,线程;内存结构图;线程的创建和启动;Thread的常用方法
- vmware 搭建ES8的常见错误
- okcc呼叫中心外呼系统智能系统需要用多大的盘存录音?
猜你喜欢
Shell script advanced
Search the complete navigation program source code
K210学习笔记(二) K210与STM32进行串口通信
How to generate assembly file
第一性原理 思维导图
分布式消息中间件框架选型-数字化架构设计(7)
Qtablewidget header customization and beautification developed by pyqt5 (with source code download)
通过实现参数解析器HandlerMethodArgumentResolver接口来自定义注解
【学习】从零开始的音视频开发(9)——NuPlayer
Campus transfer second-hand market source code download
随机推荐
Noyer électronique stm32 Introduction à l'Internet des objets 30 étapes notes I. différences entre la Bibliothèque Hal et la Bibliothèque standard
freertos学习02-队列 stream buffer message buffer
RPC过程
AQS & ReentrantLock 实现原理
Redis master-slave server problem
LeetCode-199-二叉树的右视图
Talk about the basic but not simple stock data
Shell script advanced
匿名类型(C# 指南 基础知识)
数论求a^b(a,b为1e12级别)的因子之和
根据字节码获取类的绝对路径
word加水印
Use of applicationreadyevent
Protobuf简介
关于ORB——SLAM运行中关键帧位置越来越近的异常说明
RPC procedure
Introduction to protobuf
ajax防止缓存方法
ESP32程序下载失败,提示超时
洋桃电子STM32物联网入门30步笔记二、CubeIDE下载、安装、汉化、设置