这周在学习JAVA 的过程中,我发现其中的符号和方法大都是类似的,比如说;
转义字符
;换行
;退格
;按下回车键
;制表符,相当于Tab键
数据和任何数据使用+都是相连接,最终都会变成字符串
负数的二进制表现形式:
取反“~”:将二进制的1变0,0变1
十进制6
二进制:0000 0000 0000 0000 0000 0000 0000 0110
十进制:-6
二进制:1111 1111 1111 1111 1111 1111 1111 1001
字符串位运算(二进制):
3<<2 //将3的二进制数往左移2位前面两位去掉在末尾用0补齐
0000-0000 0000-0000 0000-0000 0000-0011
0000
-0000 0000-0000 0000-0000 0000-001100
3<<2 的结果就是12