Skip to main content

2018 | Buch

Java Language Features

With Modules, Streams, Threads, I/O, and Lambda Expressions

insite
SUCHEN

Über dieses Buch

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 LearnUse 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.

Inhaltsverzeichnis

Frontmatter
Chapter 1. Annotations
Abstract
In this chapter, you will learn:
Kishori Sharan
Chapter 2. Inner Classes
Abstract
In this chapter, you will learn:
Kishori Sharan
Chapter 3. Reflection
Abstract
In this chapter, you will learn:
Kishori Sharan
Chapter 4. Generics
Abstract
In this chapter, you will learn:
Kishori Sharan
Chapter 5. Lambda Expressions
Abstract
A lambda expression is an unnamed block of code (or an unnamed function) with a list of formal parameters and a body.
Kishori Sharan
Chapter 6. Threads
Abstract
Threads are a vast topic. They deserve an entire book. This chapter does not discuss the concept of threads in detail. Rather, it discusses how to work with threads using Java constructs.
Kishori Sharan
Chapter 7. Input/Output
Abstract
All example programs in this chapter are members of a jdojo.io module, as declared in Listing 7-1.
Kishori Sharan
Chapter 8. Working with Archive Files
Abstract
In this chapter, you will learn:
Kishori Sharan
Chapter 9. New Input/Output
Abstract
All example programs in this chapter are a member of a jdojo.nio module, as declared in Listing 9-1.
Kishori Sharan
Chapter 10. New Input/Output 2
Abstract
All example programs in this chapter are members of a jdojo.nio2 module, as declared in Listing 10-1. The JDK9 module system discourages including digits at the end of a module name. However, jdojo.nio2 (note the 2 at the end of the name) is the best name that I can give to this module, as it contains examples for the New Input/Output 2 topic.
Kishori Sharan
Chapter 11. Garbage Collection
Abstract
All example programs in this chapter are members of the jdojo.gc module, as declared in Listing 11-1.
Kishori Sharan
Chapter 12. Collections
Abstract
All example programs in this chapter are members of a jdojo.collections module, as declared in Listing 12-1.
Kishori Sharan
Chapter 13. Streams
Abstract
All example programs in this chapter are members of a jdojo.streams module, as declared in Listing 13-1.
Kishori Sharan
Chapter 14. Implementing Services
Abstract
In this chapter, you will learn:
Kishori Sharan
Chapter 15. The Module API
Abstract
The Module API consists of classes and interfaces that give you programmatic access to modules. Using the API, you can programmatically
Kishori Sharan
Chapter 16. Breaking Module Encapsulation
Abstract
In this chapter, you will learn:
Kishori Sharan
Chapter 17. Reactive Streams
Abstract
In this chapter, you will learn:
Kishori Sharan
Chapter 18. Stack Walking
Abstract
All example programs in this chapter are a member of a jdojo.stackwalker module, as declared in Listing 18-1.
Kishori Sharan
Backmatter
Metadaten
Titel
Java Language Features
verfasst von
Kishori Sharan
Copyright-Jahr
2018
Verlag
Apress
Electronic ISBN
978-1-4842-3348-1
Print ISBN
978-1-4842-3347-4
DOI
https://doi.org/10.1007/978-1-4842-3348-1

Premium Partner