Learning Java

Version 5.0 of the Java 2 Standard Edition SDK is the most important upgrade since Java first appeared a decade ago. With Java 5.0, you'll not only find substantial changes in the platform, but to the language itself-something that developers of Java took five years to complete. The main goal...

Descripción completa

Detalles Bibliográficos
Autor principal: Niemeyer, Patrick (-)
Otros Autores: Knudsen, Jonathan
Formato: Libro electrónico
Idioma:Inglés
Publicado: Sebastopol, California : O'Reilly 2005.
Edición:3rd ed
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627107306719
Tabla de Contenidos:
  • Table of Contents; Preface; New Developments; New in This Edition; Using This Book; Online Examples; Online Resources; Conventions Used in This Book; Using Code Examples; Safari Enabled; 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; Security Managers
  • Application and User-Level SecuritySigning Classes; Java and the Web; Applets; New Kinds of Media; New Software Development Models; Java as a General Application Language; A Java Road Map; The Past: Java 1.0-Java 1.4; The Present: Java 5.0; The Future; Availability; Chapter 2. A First Application; Java Tools and Environment; HelloJava; Classes; The main() Method; Classes and Objects; Variables and Class Types; HelloComponent; Inheritance; The JComponent Class; Relationships and Finger Pointing; Package and Imports; The paintComponent() Method; HelloJava2: The Sequel; Instance Variables
  • ConstructorsEvents; The repaint() Method; Interfaces; HelloJava3: The Button Strikes!; Method Overloading; Components; Containers; Layout; Subclassing and Subtypes; More Events and Interfaces; Color Commentary; Static Members; Arrays; Our Color Methods; HelloJava4: Netscape's Revenge; Threads; The Thread Class; The Runnable Interface; Starting the Thread; Running Code in the Thread; Exceptions; Synchronization; Troubleshooting; Compilation (javac) Errors; Runtime (java) Errors; Java Version Problems; The getContentPane() Error; Chapter 3. Tools of the Trade; The Java VM
  • Running Java ApplicationsSystem Properties; The Classpath; javap; The Java Compiler; JAR Files; File Compression; The jar Utility; JAR manifests; Making a JAR file runnable; The pack200 Utility; Policy Files; The Default Security Manager; The policytool Utility; Using a Policy File with the Default Security Manager; Chapter 4. The Java Language; Text Encoding; Comments; Javadoc Comments; Javadoc as metadata; Types; Primitive Types; Floating-point precision; Variable declaration and initialization; Integer literals; Floating-point literals; Character literals; Reference Types
  • A Word About StringsStatements and Expressions; Statements; if/else conditionals; do/while loops; The for loop; The enhanced for loop; switch statements; break/continue; Unreachable statements; Expressions; Operators; Assignment; The null value; Variable access; Method invocation; Object creation; The instanceof operator; Exceptions; Exceptions and Error Classes; Exception Handling; Bubbling Up; Stack Traces; Checked and Unchecked Exceptions; Throwing Exceptions; Chaining exceptions; try Creep; The finally Clause; Performance Issues; Assertions; Enabling and Disabling Assertions
  • Using Assertions