【无标题】

程序实现方法

【1】顺序执行(自上而下)

【2】int a=10; 从右至左执行

        将“10”赋给“a”

驼峰命名法

            由三节组成时,第二,三节首字母大写。

                                      getNumLeagth

1bit

1Byte

2Bytes short

4Bytes int

8Bytes long

4Bytes float

8Bytes double

1bit boolean

2Bytes char

Type Casting 类型转换

widening casting(automatically)自动转

byte>short>char>int>long>float>double

narrowing casting(manually)手动转 强制类型转换

double>float>long>int>char>short>byte

【byte b=(byte)128;】

变量{动态变量static,成员变量}

数据类型{基础数据类型(8种)int,float......,引用数据类型}

int i = 10--->实现

左值 右值

规范 实现

Warrior warrior = new warrior(1,"花木兰",true,1000,800);

                                Operator(操作符)

new:(1)分配内存(2)初始化(3)赋值(4)this

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值