Java Language Features: With Modules, Streams, Threads, I/O, and Lambda Expressions, 2nd Edition
- Length: 895 pages
- Edition: 2nd ed.
- Language: English
- Publisher: Apress
- Publication Date: 2018-03-07
- ISBN-10: 1484233476
- ISBN-13: 9781484233474
- Sales Rank: #1494340 (See Top 100 Books)
Java Language Features: With Modules, Streams, Threads, I/O, and Lambda Expressions
Work with essential and advanced features of the Java programming language such as Java modules development, lambda expressions (closures), inner classes, threads, I/O, Collections, garbage collection, and more. Author Kishori Sharan provides over 50 diagrams and 290 complete programs to help you visualize and better understand the topics covered in this book.
Java Language Features, Second Edition starts with a series of chapters on the essential language features provided by Java, including annotations, reflection, and generics. These topics are then complemented by details of how to use lambda expressions, allowing you to build powerful and efficient Java programs. The chapter on threads follows this up and discusses everything from the very basic concepts of a thread to the most advanced topics such as synchronizers, the fork/join framework, and atomic variables.
This book contains unmatched coverage of Java MIO, the Stream API, the Path API, the FileVisitor API, the watch service, and asynchronous file I/O. With this in-depth knowledge, your data- and file-management programs will be able to take advantage of every feature of Java’s powerful I/O framework and much more.
Additionally, three appendices are available for free via the Download Source Code button located at www.apress.com/book/9781484233474. These appendices will give you a head start on the most important features of Java 10 and the new Java versioning scheme.
What You’ll Learn
- Use essential and advanced features of the Java language
- Code Java annotations and inner classes
- Work with reflection, generics, and threads
- Take advantage of the garbage collector
- Manage streams with the Stream API
Who This Book Is For
Those new to Java programming and continues the learning Java journey; it is recommended that you read an introductory Java programming book first, such as Beginning Java Fundamentals, from Apress.
Table of Contents
Chapter 1: Annotations
Chapter 2: Inner Classes
Chapter 3: Reflection
Chapter 4: Generics
Chapter 5: Lambda Expressions
Chapter 6: Threads
Chapter 7: Input/Output
Chapter 8: Working with Archive Files
Chapter 9: New Input/Output
Chapter 10: New Input/Output 2
Chapter 11: Garbage Collection
Chapter 12: Collections
Chapter 13: Streams
Chapter 14: Implementing Services
Chapter 15: The Module API
Chapter 16: Breaking Module Encapsulation
Chapter 17: Reactive Streams
Chapter 18: Stack Walking