摘要:步骤: 1、创建远程接口,定义可以被远程调用的方法; 2、实现远程接口;(extends UnicastRemoteObject) 3、服务端向RMI registry注册服务器 ;(Naming.rebind("ServiceName",service) 4、客户端找到服务端;(Naming.lo
阅读全文
posted @ 2020-07-25 13:50
随笔 - 40, 文章 - 0, 评论 - 0, 阅读 -
3584
|
|
07 2020 档案
摘要:步骤: 1、创建远程接口,定义可以被远程调用的方法; 2、实现远程接口;(extends UnicastRemoteObject) 3、服务端向RMI registry注册服务器 ;(Naming.rebind("ServiceName",service) 4、客户端找到服务端;(Naming.lo
阅读全文
posted @ 2020-07-25 13:50
摘要:增加元素到链表中 boolean add(Element e) //增加指定元素到链表尾部. void add(int index, Element e) //增加指定元素到链表指定位置. 从链表中删除元素 void clear() //从链表中删除所有元素. E remove(int index)
阅读全文
posted @ 2020-07-17 19:49
摘要:重载(overload) 1、同一个类内; 2、方法名相同,参数不一样. 重写/覆盖(override) 覆盖父类的同名方法.
阅读全文
posted @ 2020-07-17 15:45
摘要:关键字 自身 子类 同一个包中的其他类 不同包中的其他类 public yes yes yes yes (所有) protected yes yes yes no (子类,同包) default yes no yes no (同包) private yes no no no (自己)
阅读全文
posted @ 2020-07-17 15:05
|
|