Book description
Pro Java 8 Programming covers the core Java development kit and the finer points of the core standard edition (SE) and development kit version 8. You'll discover the particulars of working with the Java language and APIs to develop applications in many different contexts.
You will also delve into more advanced topics like lambda expressions, closures, new i/o (NIO.2), enums, generics, XML, metadata and the Swing APIs for GUI design and development. By the end of the book, you’ll be fully prepared to take advantage of Java's ease of development, and able to create powerful, sophisticated Java applications.
Table of contents
- Cover
- Title
- Copyright
- Dedication
- Contents at a Glance
- Contents
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Introduction
- Chapter 1: Going Inside Java
- Chapter 2: Designing Libraries, Classes, and Methods
- Chapter 3: Lambdas and Other Java 8 Features
-
Chapter 4: Using Threads in Your Applications
- Threading in Java
- Creating Threads
- Disadvantages of Using Threads
- Thread Management
- Understanding the Problem
- Synchronizing the Use of Shared Resources
- Nested Calls to Synchronized Methods and Code Blocks
- Synchronized Blocks vs. Methods
- Thread Priorities
- Daemon Threads
- Adding Threads to an Application
- Controlling Threads
- Starting a Thread
- Making a Thread “Sleep”
- Suspending a Thread
- Resuming a Thread
- Stopping a Thread
- Interrupting a Thread
- Completing DownloadManager
- Deprecated Methods in Thread
- DownloadFiles
- ThreadGroup
- Uncaught Exceptions
- Voluntarily Relinquishing the Processor
- Concurrency Utilities
- Summary
-
Chapter 5: Using Stream APIs and Collections
- The Evolution of Collections
-
Collection Classes and Interfaces
- Collection
- List
- ListIterator
- ArrayList
- LinkedList
- Vector
- Stack
- Set
- HashSet
- Constructors
- LinkedHashSet
- TreeSet
- EnumSet
- Map
- HashMap
- LinkedHashMap
- TreeMap
- EnumMap
- IdentityHashMap
- WeakHashMap
- ConcurrentHashMap
- CopyOnWriteArrayList and CopyOnWriteArraySet
- Queue
- PriorityQueue
- PriorityBlockingQueue
- ArrayBlockingQueue
- LinkedBlockingQueue
- ConcurrentLinkedQueue
- SynchronousQueue
- DelayQueue
- Tips on Using Collections
- Streams API
- Summary
- Chapter 6: Using Layout Managers
- Chapter 7: Using Swing’s JTable
- Chapter 8: Using Swing’s JTree
- Chapter 9: Adding Cut-and-Paste Functionality
-
Chapter 10: Adding Drag-and-Drop Functionality
- Introducing Drag-and-Drop Operation Types
- Using the Predefined Cursors
- Performing File Selection Drops from Native Applications
- Performing Local Transfers
- Performing Link/Reference Operations
- Transferring Between Java and Native Applications
- Transferring Text Data
- Customizing Standard Component Behavior
- Summary
- Chapter 11: Printing
- Chapter 12: Introducing JDBC
- Chapter 13: Internationalizing Your Applications
- Chapter 14: Using XML
- Chapter 15: Adding Annotations
- Index
Product information
- Title: Pro Java 8 Programming, Third Edition
- Author(s):
- Release date: May 2015
- Publisher(s): Apress
- ISBN: 9781484206416
You might also like
book
Learning SQL, 3rd Edition
As data floods into your company, you need to put it to work right away—and SQL …
book
Java Projects - Second Edition
Learn how to build scalable, resilient, and effective applications in Java that suit your software requirements. …
book
Mastering Spring Boot 2.0
Learn to develop, test, and deploy your Spring Boot distributed application and explore various best practices. …
book
Data Structures and Algorithms in Java, 2nd Edition
Data Structures and Algorithms in Java, Second Edition is designed to be easy to read and …