#5值传递和址传递,static,instanceof,递归#
来源:互联网 发布:java object转换成date 编辑:程序博客网 时间:2024/06/07 00:15
学习目标:传值和 传址(引用传递),this,static,instanceof
博主理解: 本章内容多为实战用途有些杂乱
,传值是传的数据值 传址是物理地址
this本身 static静态 instanceof判断实例 递归算法
然而诸多含义自己体会
引用传递和值传递:打印结果 20 ,30;
this:
表示类和属性方法调用。
调用本类构造方法
表示当前对象
如构造方法中的:this.name=name;
如无参构造方法 :this();
如类名可以用 this代替
static:(类变量)
全局属性
类名调用
静态调用静态
总结:本文概念性内容比较多,多为实用的技术,一定要熟记于心
补充递归算法
//打印100到1 整数合,带入100即可 public static int addInt(int a) { if(a==1){ return 1; }else{ return a+addInt(a-1); }
instanceof
类 instanceof 实例, 如果符合返回true,如果不符合返回 false
0 0
- #5值传递和址传递,static,instanceof,递归#
- 值传递 和址传递
- 递归和传递
- 按值传递和按址传递
- 函数的值传递和址传递
- 关于值传递和址传递
- 值传递、指针传递和引用传递
- 值传递,地址传递和引用传递
- 值传递、指针传递和引用传递
- 值传递和引用传递
- 值传递和引用传递
- 值传递和引用传递
- 值传递和引用传递
- 引用传递和值传递
- 值传递和引用传递
- 值传递和引用传递
- 值传递和引用传递
- 值传递和地址传递
- unity 运行 iOS模拟器报错 dyld: Symbol not found: __BeginEventWithLabel
- LeetCode 125 Valid Palindrome
- 史上最全Linux提权后获取敏感信息方法 20140121
- hdu1695(欧拉函数,容斥原理,vector容器)
- 创建Tab页面,建立可切换分页Activity
- #5值传递和址传递,static,instanceof,递归#
- 手机淘宝列表页面 的js调用展示
- S2-029漏洞GET poc?? 悬赏 5 WB 20160320
- Coursera Machine Learning Note - Week 2
- Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing
- Coursera Machine Learning Note - Week 3
- IDA*
- HDU 1754 I Hate It(线段树区间求最值)
- 设计模式之单例模式