首页
zwt
取消

第11章练习回顾

1. Which of the following is an advantage of the Java Platform Module System? B A. A central repository of all modules B. Encapsulating packages C. Encapsulating objects D. No defined types E. Pla...

RSocket与Spring Security简单整合

创建工程 greetings-service 在 start.spring.io 选择 2.3.0 M2 版本 Spring Boot,依赖项如下 Lombok RSocket Spring Security greetings-client 客户端的依赖...

OCP-1Z0-816 模拟测试1回顾

4. Given: Path p1 = Paths.get("c:\\temp\\test1.txt"); Path p2 = Paths.get("c:\\temp\\test2.txt"); Which of the following code fragments moves the file test1.txt to test2.txt, even if test2.txt e...

816考点速记

1. Unmodifiable collections using of/copyOf and Collections.unmodifiableXXX methods java.util.List and java.util.Set have of and copyOf static factory methods that provide a convenient way to crea...

816基准测试回顾

1. Which of the following annotations are retained for run time? @SuppressWarnings It is defined with @Retention(SOURCE) @Override It is defined with @Retention(...

Exercises for Inner class

What is an inner class? Differentiate between member, local, and anonymous inner classes. An inner class declares inside a top-level class without a static modifier. Inner classes that...

Java 内部类

在这一篇文章,你将会学习到: 内部类是什么 如何声明内部类 如何声明成员、局部,以及匿名内部类 如何创建内部类的对象 什么是内部类? 我们知道类(class)是包(package)的成员(member)。即顶层类,直接放在包下面的类。例如以下这段代码: // TopLevel.java package io.zwt.innercla...

深入生成器设计模式

GoF 定义 Separate the construction of a complex object from its representation so that the same construction processes can create different representations. 将一个复杂对象的构建与它的表示分离,使得同样的构建过程可以创建不同表示...

Spring Boot的类

常见类的用途 SpringApplicationBuilder java.lang.Object ​ org.springframework.boot.builder.SpringApplicationBuilder Builder for SpringApplication and ApplicationContext instances with convenient fluent...

Spring Boot 消息

消息通信 最简单的消息机制,从A点到B点,通过某种信道传递消息,可以使一个简单的函数调用,一个socket连接,或者是一个HTTP请求。主要目的是发送端发送消息给接收端消费。 消息通信使用场景 下面列出一些消息通信常见的使用场景: 可靠送达 通常需要一些消息确认机制,如果中间有个Broker,消息生产者要通过一些确认,了解Broker确实收到了消息。同理在消费者段也需要给Bro...