2018-09-01から1ヶ月間の記事一覧

1Z0-809复习 第6章 Exception and Assertion

Exceptions and Assertions Reviewing Exceptions Exceptions Terminology Categories of Exceptions Exceptions on the OCP Try Statement catch里不能有try里面发生不了的checked Exception, 原理也是不能存在到达不了的Exception。 Throw vs. Throws Cre…

1Z0-809复习 第9章 NIO.2

NIO.2 Use Path interface to operate on file and directory paths Use Files class to check, read, delete, copy, move, manage metadata of a file or directory Use Stream API with NIO.2 NIO.2 中的N是指Non-blocking(非阻塞) 比java.io API能做更多…

1Z0-809复习 第1章 Advanced Class Design

Advanced Class Design Reviewing OCA Concepts Access Modifiers Overloading and Overriding Abstract Classes Static and Final Imports Using instanceof A instanceof B,如果A是B,或B的子类,则是true,如果不是则是false。 如果A是null,则永远是fal…

《Java8函数式编程》学习笔记 - 第9章

第9章 使用Lambda表达式编写并发程序 前面的章节介绍如何并行化处理出具,本章讨论如何使用Lambda表达式编写并发应用, 高效传递信息和非阻塞式I/O 为什么要使用非阻塞式I/O 使用传统线程模型,每次向用户写数据时,都要调用一个方法向用户传输数据, 这个方…

1Z0-809复习 第7章 并发

Concurrency Introducing Threads Distinguishing Thread Types Introducing Threads Understanding Thread Concurrency Introducing Runnable Creating a Thread Polling with Sleep daemon threads:不阻止JVM退出的线程 Creating Threads with the Executo…

1Z0-809复习 第10章 JDBC

JDBC Introducing Relational Databases and SQL 从java访问数据库的两种方式。 JDBC:通过行列访问数据 JPA:访问数据是通过Java Object(ORM) 相对于关系型数据库还有一种类型的数据库叫做NoSQL数据库。 存储数据不是用table,而是用某种格式。 Identifyi…

1Z0-809复习 第2章 设计模式和原则 Interface

Design Patterns and Principles 会申明,实现,继承,接口,并且使用override注释 会写lambda表达式 会用java.util.function package里的 Predicate,Function,Consumer,Supplier 实现封装 实现继承,包括可是修饰符和composition 创建单例类和不可修改类 De…

1Z0-809复习 第2章 设计模式和原则 大纲

Design Patterns and Principles Designing an Interface Purpose of an Interface Introducing Functional Programming Defining a Functional Interface Implementing Functional Interfaces with Lambdas Applying the Predicate Interface Implementing …

1Z0-809复习 第1章 Creating Nested Classes

Advanced Class Design Reviewing OCA Concepts Access Modifiers Overloading and Overriding Abstract Classes Static and Final Imports Using instanceof Understanding Virtual Method Invocation Annotating Overridden Methods Coding equals, hashCo…

1Z0-809复习 第1章 toString(), equals(),hashCode(),

Advanced Class Design Reviewing OCA Concepts Access Modifiers Overloading and Overriding Abstract Classes Static and Final Imports Using instanceof Understanding Virtual Method Invocation Annotating Overridden Methods Coding equals, hashCo…

1Z0-809复习 第1章 ENUM值

Advanced Class Design Reviewing OCA Concepts Access Modifiers Overloading and Overriding Abstract Classes Static and Final Imports Using instanceof Understanding Virtual Method Invocation Annotating Overridden Methods Coding equals, hashCo…