In-depth understanding of Java 7: core technologies and best practices
Basic Information
Author: Cheng Fu
Series name: original works of huazhang
Press: Machinery Industry Press
ISBN: 9787111380399
Mounting time:
Published on: February 1, May 2012
Start: 16
Page number: 450
Version: 1-1
Category: Computer> Software and programming> JAVA (J #)> JAVA
More about Java 7: core technologies and best practices
Introduction
Computer books
An in-depth understanding of Java 7: core technologies and best practices is one of the best choices to learn new features and features of Java 7 and to gain an in-depth understanding of the core technologies of Java. After nearly six years of waiting, Java has ushered in another historic version of Java 7. Java 7 has taken another step in improving developers' production efficiency, platform performance, and module direction, becoming more powerful and flexible. An in-depth understanding of Java 7: core technologies and best practices not only comprehensively interprets all important updates of Java 7, the underlying implementation of the core technology of the Java platform is also discussed in depth, including a large number of best practices.
The main content of the book can be divided into three parts: The first part is 1 ~ Chapter 6 describes all the important new functions and features of Java 7 in terms of syntax, JVM, class libraries and APIs. mastering this part will greatly improve coding efficiency and code quality; the second part is 7 ~ Chapter 13, core Technologies of Java platforms such as JVM, Java source code and byte code operations, class loaders, object lifecycles, multithreading, concurrent programming, generics, and security are thoroughly parsed, understanding this part helps you to deeply understand the underlying principles of Java. The third part is Chapter 14th, which provides a brief introduction to the new features to be added in Java 8.
Directory
In-depth understanding of Java 7: core technologies and best practices
Preface
Java Challenges and Prospects
Chapter 2 new syntax features of Java 7/1
1.1 coin Project Introduction/1
1.2 use a string/2 in the switch statement
1.2.1 Basic usage/2
1.2.2 implementation principle/3
1.2.3 Enumeration type/5
1.3 improvement of literal value/5
1.3.1 binary integer literal/6
1.3.2 use underline/6 in numeric literal
1.4 optimized Exception Handling/7
1.4.1 basic exception knowledge/7
1.4.2 create your own exceptions/8
1.4.3 handling exceptions/12
1.4.4 exception handling features of Java 7/14
1.5 try-with-resources statement/17
1.6 optimize the variable length parameter method call/19
1.7 Summary/21
. Chapter 2 dynamic nature of the Java language/22
2.1 script language support API/22
2.1.1 Script Engine/23
2.1.2 language binding/24
2.1.3 script execution Context/25
2.1.4 script compilation/27
2.1.5 method call/28
2.1.6 use cases/29
2.2 reflection API/31
2.2.1 get constructor/32
2.2.2 retrieve domain/34
2.2.3 obtaining method/34
2.2.4 Operation Array/35
2.2.5 access permission and Exception Handling/36
2.3 dynamic proxy/36
2.3.1 basic usage/36
2.3.2 use cases/40
2.4 Dynamic Language Support/42
2.4.1 Java language and Java Virtual Machine/43
2.4.2 method handle/44
2.4.3 invokedynamic command/66
2.5 Summary/73
Chapter 4 Java I/O/75
3.1 streams/75
3.1.1 basic input stream/76
3.1.2 Basic output stream/77
3.1.3 input stream multiplexing/78
3.1.4 filter input/output streams/80
3.1.5 other input/output streams/81
3.1.6 streams/81
3.2 buffer/82
3.2.1 basic usage/83
3.2.2 byte buffer/84
3.2.3 buffer view/86
3.3 channels/87
3.3.1 file channel/88
3.3.2 socket channel/93
3.4 nio.2/98
3.4.1 File System Access/98
3.4.2 zip/JAR File System/106
3.4.3 asynchronous I/O channel/108
3.4.4 socket channel binding and configuration/111
3.4.5 IP multicast channel/111
3.5 use cases/113
3.6 Summary/115
Chapter 2 internationalization and localization/4th
4.1 internationalization Overview/117
4.2 Unicode/118
4.2.1 unicode encoding format/119
4.2.2 other character sets/124
4.2.3 Java and Unicode/124
4.3 coding practices in Java/125
4.3.1 encoder and decoder/126 in Java NiO
4.3.2 detailed explanation of Garbled text/130
4.4 region settings/133
4.4.1 ietf bcp 47/134
4.4.2 resource package/135
4.4.3 Date & time/143
4.4.4 numbers and currencies/144
4.4.5 message text/146
4.4.6 default region type/148
4.4.7 string comparison/148
4.5 basic international and localization practices/149
4.6 Summary/152
Chapter 5 graphic user interface/5th
5.1 Java graphical user interface Overview/153
5.2 AWT/156
5.2.1 important components/156
5.2.2 window in any shape/157
5.2.3 translucent window/158
5.2.4 component mixing/159
5.3 swing/159
5.3.1 important component category/159
5.3.2 jlayer component and layerui class/161
5.4 event processing and thread security/163
5.4.1 event handling/163
5.4.2 event distribution thread/165
5.4.3 swingworker class/167
5.4.4 secondaryloop interface/169
5.5 page drawing/170
5.5.1 UI rendering in AWT/170
5.5.2 drawing in swing/171
5.6 pluggable exterior style/172
5.7 javafx/175
5.7.1 scenario/175
5.7.2 transformation/177
5.7.3 animation effect/177
5.7.4, fxml/179
5.7.5 CSS appearance description/181
5.7.6 web engine and web page display/182
5.8 use cases/183
5.9 Summary/185
Chapter 2 other important updates of Java 7/6th
6.1 relational database access/186
6.1.1 use try-with-resources statement/186
6.1.2 default database query mode/187
6.1.3 database connection timeout and termination/188
6.1.4 The statement is automatically disabled/189
6.1.5 rowset implementation provider/190
6.2 java. lang Package update/191
6.2.1 basic type packages/191
6.2.2 process usage/192
6.2.3 update of Thread class/194
6.3 Java utility/195
6.3.1 object operations/195
6.3.2 Regular Expression/197
6.3.3 compressed file processing/200
6.4 JavaBeans components/201
6.4.1 obtain component information/201
6.4.2 execution statement and expression/202
6.4.3 persistence/202
6.5 Summary/203
Chapter 4 Java Virtual Machine/7th
7.1 basic concepts of virtual machines/205
7.2 memory management/206
7.3 reference type/208
7.3.1 strong reference/209
7.3.2 basic concepts of reference types/211
7.3.3 soft reference/213
7.3.4 weak reference/215
7.3.5 ghost reference/217
7.3.6 reference queue/220
7.4 Java Local interface/221
7.4.1 basic JNI usage/221
7.4.2 integrate C/C ++ code/225 in a Java program
7.4.3 start the Java Virtual Machine/227 in the C/C ++ Program
7.5 hotspot VM/228
7.5.1 byte code execution/229
7.5.2 garbage collection/229
7.5.3 startup parameters/235
7.5.4 analysis tools/236
7.5.5 Java Virtual Machine Tool interface/241
7.6 Summary/244
Chapter 2 Java source code and byte code operations/8th
8.1 JAVA byte code format/245
8.1.1 basic format/246
8.1.2 structure of the constant pool/248
8.1.3 attribute/249
8.2 dynamic compilation of Java source code/249
8.2.1 use javac tool/250
8.2.2 Java compiler API/251
8.2.3 use eclipse jdt Compiler/254
8.3 byte code enhancement/257
8.3.1 Using ASM/258
8.3.2 enhanced proxy/267
8.4 Annotations/271
8.4.1 annotation type/271
8.4.2 create annotation type/273
8.4.3 annotation type/274
8.4.4 processing annotation/275
8.5 use cases/284
8.6 Summary/286
Chapter 2 Java class loaders/9th
9.1 class loaders Overview/287
9.2 Class Loader hierarchy and proxy mode/288
9.3 create a class loader/290
9.4 isolation of class loaders/294
9.5 thread context loader/296
9.6 class. forname method/298
9.7 load resources/299
9.8 web application classloaders/301
9.9 class loaders in osgi/303
9.9.1 osgi basic class loader mechanism/303
9.9.2 equinox framework class loading implementation mechanism/303
9.9.3 embed the Equinox framework into a Web Container/306
9.10 Summary/308
Chapter 2 object lifecycle/10th
10.1 Java class link/309
10.2 Java class initialization/311
10.3 object creation and initialization/312
10.4 object termination/314
10.5 object replication/318
10.6 Object serialization/322
10.6.1 default Object serialization/324
10.6.2 custom object serialization/326
10.6.3 object replacement/329
10.6.4 version update/330
10.6.5 Security/331
10.6.6 use the externalizable interface/332
10.7 Summary/334
Chapter 2 multithreading and concurrent programming practices/11th
11.1 multithreading/335
11.1.1 visibility/336
11.1.2 Java memory model/339
11.1.3 volatile keyword/340
11.1.4 final keywords/341
11.1.5 atomic operation/342
11.2 basic thread synchronization mode/343
11.2.1 synchronized keyword/343
11.2.2 wait, policy, and policyall methods of the object class/344
11.3 use Thread class/346
11.3.1 thread status/346
11.3.2 thread interruption/347
11.3.3 thread waiting, sleep, and concession/348
11.4 non-blocking mode/349
11.5 Advanced utility/352
11.5.1 advanced synchronization mechanism/352
11.5.2 underlying synchronization/355
11.5.3 advanced synchronization object/357
11.5.4 Data Structure/363
11.5.5 task execution/365
11.6 New Features of Java SE 7/368
11.6.1 lightweight task execution framework fork/join/368
11.6.2 multi-stage thread synchronization tool/370
11.7 threadlocal class/373
11.8 Summary/374
Chapter 2 Java generics/12th
12.1 basic generic concepts/375
12.2 type erasure/378
12.3 upper and lower bounds/382
12.4 wildcard/384
12.5 generics and arrays/385
12.6 type system/388
12.7 overwrite and heavy load/391
12.7.1 override requirements for method type signatures/391
12.7.2 requirements on the return value type/395
12.7.3 overwrite the exception statement/396
12.7.4 overloading/396
12.8 type inference and [] Operator/397
12.9 generic and reflection APIs/400
12.10 use cases/402
12.11 Summary/403
Chapter 2 Java security/13th
13.1 Java security overview/405
13.2 user authentication/406
13.2.1 subject, identity and credential/406
13.2.2 logon/407
13.3 permission control/415
13.3.1 permissions, policies, and protection domains/416
13.3.2 access control permission/418
13.3.3 privileged action/420
13.3.4 access control context/421
13.3.5 protected object/423
13.4 encryption and decryption, message digest, and digital signature/424
13.4.1 Java password framework/424
13.4.2 encryption and decryption/425
13.4.3 message Summary/427
13.4.4 digital signature/428
13.5 Secure Socket Connection/430
13.5.1 SSL protocol/431
13.5.2 HTTP/432
13.6 use cases/434
13.7 Summary/437
Chapter 5 go beyond Java 14th
14.1 lambda expressions/438
14.1.1 functional interface/439
14.1.2 Lambda expression syntax/440
14.1.3 target type/440
14.1.4 lexical scope/441
14.1.5 method reference/442
14.1.6 default Interface Method/443
14.2 Java platform modularization/444
14.3 other Java SE 8 updates/445
14.4 Summary/445
Appendix A openjdk/446
Appendix B Java Brief History/448
Source of this book: China Interactive publishing network