2019年8月16日

摘要: 创建线程的方式: 1: 继承Thread package com.sxt.thread; /** * 创建线程方式一: * 1、创建:继承Thread+重写run * 2、启动: 创建子类对象 + start * @author * */ public class StartThread exten 阅读全文
posted @ 2019-08-16 09:51 JieFangZhe 阅读(184) 评论(0) 推荐(0)
摘要: package com.sxt.thread; /** * 静态代理 * 公共接口: * 1、真实角色 * 2、代理角色 * * @author * */ public class StaticProxy { public static void main(String[] args) { new WeddingCompany(new You()).happyMarry(); //new Thre 阅读全文
posted @ 2019-08-16 09:39 JieFangZhe 阅读(110) 评论(0) 推荐(0)

导航