java class and obj

java Learning
1.when code a class,The initial should be a capital
2.commonly,a class def in a private file
3.the java is public if not define
4.Person p = new Person();
the 2nd Person is access a consture functions
5.when comes a nullpointerexeptions, there must be a data uninitialed
6.clarify the progress when create a obj
7.the reference type and basic type
ref:obj and string so on ;
ref will be changed in func
but string cannot be changed:as the JDK API, a final before string’s defination
8.static:
1.static can be use without obj but class exactly
2.staic func can only use static in a class
3.once program start, static being create
4.satic most code for a func that surly being use once create a obj
9.static block:(static 块)
some codes all static->same for every class and obj
10.java extend:con only extend one in java
1.rewirte:
2.super.tell()//use the func of fateher
3.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值