Book description
Java is the preferred language for many of today’s leading-edge technologies—everything from smartphones and game consoles to robots, massive enterprise systems, and supercomputers. If you’re new to Java, the fourth edition of this bestselling guide provides an example-driven introduction to the latest language features and APIs in Java 6 and 7. Advanced Java developers will be able to take a deep dive into areas such as concurrency and JVM enhancements.
You’ll learn powerful new ways to manage resources and exceptions in your applications, and quickly get up to speed on Java’s new concurrency utilities, and APIs for web services and XML. You’ll also find an updated tutorial on how to get started with the Eclipse IDE, and a brand-new introduction to database access in Java.
Table of contents
- Learning Java
- Preface
- 1. A Modern Language
- 2. A First Application
- 3. Tools of the Trade
- 4. The Java Language
- 5. Objects in Java
-
6. Relationships Among Classes
- Subclassing and Inheritance
- Interfaces
- Packages and Compilation Units
- Visibility of Variables and Methods
- Arrays and the Class Hierarchy
- Inner Classes
- 7. Working with Objects and Classes
- 8. Generics
-
9. Threads
- Introducing Threads
- Threading an Applet
- Synchronization
- Scheduling and Priority
- Thread Groups
- Thread Performance
-
Concurrency Utilities
- Executors
- Locks
-
Synchronization Constructs
- CountDownLatch
- Semaphore
- CyclicBarrier
- author="pat” timestamp="20120806T231934-0500” comment="I'm not sure if we need to recast our example using Phaser or replace it... I think Phaser pretty much replaces CyclicBarrier, but it is only in Java 7... so normally we'd show both... but they are very similar... Also I'm tired :)”Phaser
- Exchanger
- Atomic Operations
- Conclusion
- 10. Working with Text
-
11. Core Utilities
- Math Utilities
- Dates and Times
- Timers
- Collections
- Properties
- The Preferences API
- The Logging API
- Observers and Observables
- 12. Input/Output Facilities
-
13. Network Programming
- Sockets
- Datagram Sockets
- Simple Serialized Object Protocols
- Remote Method Invocation
- Scalable I/O with NIO
- 14. Programming for the Web
-
15. Web Applications and Web Services
- Web Application Technologies
- Java Web Applications
- WAR Files and Deployment
- Servlet Filters
- Building WAR Files with Ant
- Implementing Web Services
- Conclusion
-
16. Swing
-
Components
- Peers and Look-and-Feel
- The MVC Framework
- Painting
- Enabling and Disabling Components
- Focus, Please
- Other Component Methods
- Layout Managers
- Insets
- Z-Ordering (Stacking Components)
- The revalidate() and doLayout() Methods
- Managing Components
- Listening for Components
- Windows, Frames and Splash Screens
- Other Methods for Controlling Frames
- Content Panes
- Desktop Integration
- Events
- Event Summary
- The AWT Robot!
- Multithreading in Swing
-
Components
- 17. Using Swing Components
- 18. More Swing Components
- 19. Layout Managers
- 20. Drawing with the 2D API
- 21. Working with Images and Other Media
-
22. JavaBeans
- What’s a Bean?
- The NetBeans IDE
- Properties and Customizers
- Event Hookups and Adapters
- Binding Properties
- Building Beans
- Limitations of Visual Design
- Serialization Versus Code Generation
- Customizing with BeanInfo
- Handcoding with Beans
- BeanContext and BeanContextServices
- The Java Activation Framework
- Enterprise JavaBeans and POJO-Based Enterprise Frameworks
-
23. Applets
- The Politics of Browser-Based Applications
- Applet Support and the Java Plug-in
- The JApplet Class
- Java Web Start
- Conclusion
- 24. XML
- A. The Eclipse IDE
- B. BeanShell: Java Scripting
- Glossary
- Index
- About the Authors
- Colophon
- Copyright
Product information
- Title: Learning Java, 4th Edition
- Author(s):
- Release date: June 2013
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449319243
You might also like
book
Java Challenges: 100+ Proven Tasks that Will Prepare You for Anything
Expand your knowledge of Java with this entertaining learning guide, which features 100+ exercises and programming …
video
React - The Complete Guide (Includes Hooks, React Router, and Redux) - Second Edition
**This course is now updated for the latest version of React—React 18** React.js is the most …
book
Designing Data-Intensive Applications
Data is at the center of many challenges in system design today. Difficult issues need to …
book
Learning Go
Go is rapidly becoming the preferred language for building web services. While there are plenty of …