摘要:
TCP/IP: Transmission Control Protocol / Internet Protocol 内部包含的通信协议有TCP传输控制协议(应用程序之间的协议);UDP用户数据报协议(应用程序之间的简单协议);IP网际协议(计算机之间的协议);ICMP因特网消息控制协议(针对错误和状 阅读全文
摘要:
我们创建一个引用类型时,地址存储在栈中,申请出来的空间在堆中。this指针在堆中,指向它本身。代表当前对象的一个引用 构造方法用this 普通方法用this Public class thisDemo{ String name; int age; public thisDemo(String nam 阅读全文
摘要:
必须给定长度 int[][] a = new int[3][]; 第二个可以不给值,因为是数组的数组 int[][] arr2 = new int[3][]; //因为可以长度不一 arr2[0] = new int[5]; arr2[1] = new int[2]; arr2[2] = new i 阅读全文
摘要:
数组初始化后,长度就不变了;内部数据类型要一致 数组的初始化可以有很多种形式 都需要声明占用内存一块地,起名字,赋大小。可以加初值也可不加(还是会有默认值:int-0;String-null;Boolean-false) int [] arr1 = new int[3]; int arr1[] = 阅读全文