全部文章
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 47 下一页
摘要: 或者: 阅读全文
posted @ 2020-06-29 19:29 指尖下的世界 阅读(808) 评论(0) 推荐(0)
摘要: 1.类加载器 1.1类加载 1.2类加载器 public static void main(String[] args) { // static ClassLoader getSystemClassLoader() 返回用于委派的系统类加载器。 // ClassLoader getParent() 阅读全文
posted @ 2020-06-28 23:35 指尖下的世界 阅读(171) 评论(0) 推荐(0)
摘要: 1.概述 @FunctionalInterface public interface FunctionInterface { void show(); } 2.函数式接口作为方法参数 public class Demo { public static void main(String[] args) 阅读全文
posted @ 2020-06-27 23:07 指尖下的世界 阅读(169) 评论(0) 推荐(0)
摘要: 1.体验一下方法引用 public interface PrintInterface { void print(String s); } public class Demo { public static void main(String[] args) { show(s -> System.out 阅读全文
posted @ 2020-06-27 21:56 指尖下的世界 阅读(183) 评论(0) 推荐(0)
摘要: 1.概述 2.接口中的默认方法 默认方法的出现解决了java在一些老接口更新时,之前的实现类不必一定都要追加重写新增的方法,例如JKD11.0版本里面List接口新增了很多方法,但是,之前的ArrayList等子类就不必跟着强制更新重写List接口的新方法,在需要使用时可以手动追加重写;这在我们今后 阅读全文
posted @ 2020-06-27 19:07 指尖下的世界 阅读(169) 评论(0) 推荐(0)
摘要: Ctrl +Alt+Enter+S打开项目设置页面,按照下图操作然后: 然后选择目标jdk的安装目录: 然后安装下图选择使用对应版本JDK 阅读全文
posted @ 2020-06-27 17:51 指尖下的世界 阅读(446) 评论(0) 推荐(0)
摘要: 1.概述 2.体验lambda public static void main(String[] args) { //匿名内部类启动线程 new Thread(new Runnable() { @Override public void run() { System.out.println("匿名内 阅读全文
posted @ 2020-06-27 16:04 指尖下的世界 阅读(200) 评论(0) 推荐(0)
摘要: 1.网络编程入门 1.1.网络编程概述 1.2网络编程三要素 1.3 IP IP地址常用命令: ipconfig 查看本机IP地址 ping IP地址 检查网络是否连通 特殊IP地址:127.0.0.1:是回送地址,可以表示本机地址,一般用来测试使用 1.4 InetAddress // InetA 阅读全文
posted @ 2020-06-26 21:27 指尖下的世界 阅读(189) 评论(0) 推荐(0)
摘要: 1.进程 2.线程 例如记事本:我们在打开记事本的时候打开页面设置: 上面这种情况说明记事本整个执行流程只有一条执行路径,是单线程程序 再例如QQ: 上面QQ的聊天界面和好友搜索界面有各自的执行路径,说明QQ是多线程程序 3.多线程实现方式 方式1: public class MyThread ex 阅读全文
posted @ 2020-06-25 22:44 指尖下的世界 阅读(171) 评论(0) 推荐(0)
摘要: 概述 1.Properties作为Map使用 // 创建对象不可使用泛型 Properties properties = new Properties(); // 存储元素 properties.put("张飞","18"); properties.put("关羽","19"); propertie 阅读全文
posted @ 2020-06-25 16:42 指尖下的世界 阅读(166) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 47 下一页