Java技术目前应用广泛,工作求职者众多,取得高薪报酬是码农自身水平的直接体现,这里将Java求职中需要掌握的内容分为以下3个部分。 1. 基础部分 技术岗位与面试流程 计算机基础 JVM原理 多线程 设计模式 数据结构与算法 2. 应用部分 常用工具集 常用框架 缓存 队列 数据库 3. ...
用一张GIF理解“Java子类实例化总是默认调用父类的无参构造方法”
之前学基础的时候记得继承类继承父类所有非private的变量和方法,另外Java子类实例总是默认调用父类的无参构造方法,但认识不深刻,所以这次直接自己写一个父类和子类,直接单步调试一下。 实现代码:// 父类class Father { // 姓氏 private Stri ...
新特性09| Base64
简介 Base64 is a binary-to-text encoding scheme that represents binary data in a printable ASCII string format by translating it into a radix-64 represe ...
新特性08| 新日期时间API
简介 New date-time API is introduced in Java 8 to overcome the following drawbacks of old date-time API : Not thread safe : Unlike old java.util.Date w ...
新特性07| Nashorn JavaScript
简介 With Java 8, Nashorn, a much improved javascript engine is introduced, to replace the existing Rhino. Nashorn provides 2 to 10 times better perform ...
新特性06| Optional类
简介 Java Optional Class : Every Java Programmer is familiar with NullPointerException. It can crash your code. And it is very hard to avoid it without ...
新特性05| Stream
简介 Stream represents a sequence of objects from a source, which supports aggregate operations. Following are the characteristics of a Stream − Sequen ...
新特性04| 默认方法
简介 Before Java 8, interfaces could have only abstract methods. The implementation of these methods has to be provided in a separate class. So, if a ne ...
新特性03| 函数式接口
简介 A functional interface is an interface that contains only one abstract method. They can have only one functionality to exhibit. From Java 8 onwards ...
新特性02| 方法引用
简介 Method references provide easy-to-read lambda expressions for methods that already have a name. (译文)方法引用为已有名字的方法提供了简单易读的lambda表达式写法。 说明方法引用通过方法的 ...