随笔分类 -  JAVA源码解析

摘要:/* * Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 阅读全文
posted @ 2019-11-03 18:52 纵马天涯 阅读(803) 评论(0) 推荐(0)
摘要:从Comparator接口的源码,可以看到Comparator接口中的方法有三类: 1 普通接口方法 2 default方法 3 static方法 其中default方法和static方法 是java8新加的特性,default方法提供了方法实现,不强制接口实现类实现。static相较于defaul 阅读全文
posted @ 2019-10-24 16:47 纵马天涯 阅读(1695) 评论(0) 推荐(0)