Learning Java : an introduction to real-world programming with Java /
Ideal for working programmers new to Java, this best-selling book guides you through the language features and APIs of Java 21. Through fun, compelling, and realistic examples, authors Marc Loy, Patrick Niemeyer, and Dan Leuck introduce you to Java's fundamentals, including its class libraries,...
Clasificación: | Libro Electrónico |
---|---|
Autores principales: | , , |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Sebastopol, CA :
O'Reilly Media, Inc,
2023.
|
Edición: | 6th edition. |
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Intro
- Copyright
- Table of Contents
- Preface
- Who Should Read This Book
- New Developments
- New in This Edition (Java 15, 16, 17, 18, 19, 20, 21)
- Using This Book
- Online Resources
- Conventions Used in This Book
- Using Code Examples
- O'Reilly Online Learning
- How to Contact Us
- Acknowledgments
- Chapter 1. A Modern Language
- Enter Java
- Java's Origins
- Growing Up
- A Virtual Machine
- Java Compared with Other Languages
- Safety of Design
- Simplify, Simplify, Simplify...​
- Type Safety and Method Binding
- Incremental Development
- Dynamic Memory Management
- Error Handling
- Threads
- Scalability
- Safety of Implementation
- The Verifier
- Class Loaders
- Application and User-Level Security
- A Java Road Map
- The Past: Java 1.0-Java 20
- The Present: Java 21
- The Future
- Exercises
- Chapter 2. A First Application
- Java Tools and Environment
- Installing the JDK
- Installing IntelliJ IDEA and Creating a Project
- Running the Project
- Grabbing the Examples
- HelloJava
- Classes
- The main() Method
- Classes and Objects
- Variables and Class Types
- HelloComponent
- Inheritance
- The JComponent Class
- Relationships and Finger-Pointing
- Packages and Imports
- The paintComponent() Method
- HelloJava2: The Sequel
- Instance Variables
- Constructors
- Events
- The repaint() Method
- Interfaces
- Goodbye and Hello Again
- Review Questions
- Code Exercises
- Chapter 3. Tools of the Trade
- JDK Environment
- The Java VM
- Running Java Applications
- System Properties
- The Classpath
- CLASSPATH on Unix and macOS
- CLASSPATH on Windows
- CLASSPATH Wildcards
- Modules
- The Java Compiler
- Trying Java
- JAR Files
- The jar Utility
- Tool Wrap-Up
- Review Questions
- Code Exercises
- Advanced Code Exercises
- Chapter 4. The Java Language
- Text Encoding
- Comments
- Javadoc Comments
- Annotations
- Variables and Constants
- Types
- Primitive Types
- Reference Types
- A Word About Strings
- Statements and Expressions
- Statements
- Expressions
- Arrays
- Array Types
- Array Creation and Initialization
- Using Arrays
- Anonymous Arrays
- Multidimensional Arrays
- Types and Classes and Arrays, Oh My!
- Review Questions
- Code Exercises
- Advanced Exercises
- Chapter 5. Objects in Java
- Classes
- Declaring and Instantiating Classes
- Accessing Fields and Methods
- Static Members
- Methods
- Local Variables
- Shadowing
- Static Methods
- Initializing Local Variables
- Argument Passing and References
- Wrappers for Primitive Types
- Method Overloading
- Object Creation
- Constructors
- Working with Overloaded Constructors
- Object Destruction
- Garbage Collection
- Packages
- Importing Classes
- Custom Packages
- Member Visibility and Access
- Compiling with Packages
- Advanced Class Design
- Subclassing and Inheritance
- Abstract Classes and Methods
- Interfaces