摘要:
Problem background: When test rmi-client to server,the latter's default port was occupied, even if we use netstat -ano|fidnstr 1099to seek whick appli 阅读全文
摘要:
1. What is RMI? Remote Method Invocation (RMI) Much like RPC, it is a mechanism implemented independently by java. This is essentially calling methods 阅读全文
摘要:
Java多线程 方式一:继承Thread类 创建线程方式一:继承Thread类,重写run()方法,调用start开启线程。 在run()方法中写要做的事情。 public class TestThread1 extends Thread{ @Override //线程入口点 public void 阅读全文
摘要:
多态的前提: 有继承/实现关系 有方法重写 父类的引用指向子类的对象 多态示例: class Animal { public String name = "animal"; public void eat() { System.out.println("动物吃草"); } } class Chick 阅读全文