We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
内置数据类型:
引用类型:
引用类型指向一个对象,指向对象的变量就是引用变量。如site
Site site = new Site("http://lirawx.cn");
byte,short,char -> int -> long -> float -> double
不使用任何关键字:对同一包内可见,接口变量隐式的声明为 public static final,接口里的方法默认情况访问权限为public。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
首先确定以下概念:
类型变量
数据类型
内置数据类型:
引用类型:
引用类型指向一个对象,指向对象的变量就是引用变量。如site
自动类型转换
int i = 128;
byte b = (byte)i;
byte最大127,会溢出
(int)12.7 == 12
(int)-25.89f == -45
修饰符
访问修饰符
非访问修饰符
The text was updated successfully, but these errors were encountered: