You are previewing Java® Programming 24-Hour Trainer.
O'Reilly logo
Java® Programming 24-Hour Trainer

Book Description

A unique book-and-video package of Java® Programming 24-Hour Trainer, presented by Java guru Yakov Fain

As one of the most popular software languages for building Web applications, Java is often the first programming language developers learn. The latest version includes numerous updates that both novice and experienced developers need to know. With this invaluable book-and-video package, Java authority Yakov Fain fully covers Java's new features as well as its language extensions, classes and class methods, and the Swing Application Framework. For each lesson that he discusses in the book, there is an accompanying instructional video to reinforce your learning experience.

  • Features a unique book-and-video combination that starts from scratch and introduces newcomers to Java

  • Integrates instructional videos with each lesson in the book, teaching by doing!

  • Teaches skills businesses demand when hiring new Java developers

  • Each lesson includes hands-on programming exercises to enrich your learning experience

  • Shares easy-to-follow lessons, reinforced by step-by-step instructions, screen shots, and supplemental exercises so that you have a variety of learning styles from which to choose

Author is a Java authority and a "Java Champion," a title bestowed on an exclusive group of Java community leaders.

Note: CD-ROM/video and other supplementary materials are not included as part of eBook file.

Table of Contents

  1. Cover
  2. Contents
  3. Chapter 1: Introducing Java
    1. Why Learn Java?
    2. Setting the Goals
    3. The Life Cycle of a Java Program
    4. JDK and JRE
    5. Java SE and EE
    6. Downloading and Installing JDK in Windows
    7. Your First Java Program: Hello World
    8. Try It
  4. Chapter 2: Eclipse IDE
    1. Introducing Eclipse IDE
    2. Downloading and Installing Eclipse
    3. Creating Hello Project in Eclipse
    4. Creating the HelloWorld Class in Eclipse
    5. Java Packages
    6. Completing Code Generation
    7. Try It
  5. Chapter 3: Object-Oriented Programming
    1. Classes and Objects
    2. Variables, Constants, and Data Types
    3. Variable Scope
    4. Wrappers, Autoboxing, and Unboxing
    5. Program Comments
    6. Try It
  6. Chapter 4: Class Methods
    1. Method Arguments
    2. Method Overloading
    3. Constructors
    4. The Keyword super
    5. The Keyword this
    6. Passing by Value or by Reference
    7. Variable Scopes
    8. The Keyword static
    9. Try It
  7. Chapter 5: Back to Java Basics
    1. Arrays
    2. Loops
    3. Debugging Java Programs
    4. More about if and switch Statements
    5. Command-Line Arguments
    6. Try It
  8. Chapter 6: Packages, Interfaces, and Encapsulation
    1. Java Packages
    2. Encapsulation
    3. The Keyword final
    4. Interfaces
    5. Casting
    6. Try It
  9. Chapter 7: Programming with Abstract Classes and Interfaces
    1. Abstract Classes
    2. Polymorphism
    3. Interfaces versus Abstract Classes
    4. Try It
  10. Chapter 8: Introducing the Graphic User Interface
    1. Swing Basics
    2. Layout Managers
    3. Swing GUI Builders
    4. Try It
  11. Chapter 9: Event Handling in UI
    1. Introduction to Event Listeners
    2. Teaching the Calculator to Calculate
    3. More Swing Listeners
    4. How to Use Adapters
    5. Inner Classes
    6. Try It
  12. Chapter 10: Introduction to Java Applets
    1. An Unofficial History of Java Applets
    2. Restrictions of Java Applets
    3. Learning HTML on the Run
    4. Writing Applets Using Swing
    5. Try It
  13. Chapter 11: Developing a Tic-Tac-Toe Applet
    1. The Strategy
    2. Coding Tic-Tac-Toe
    3. Try It
  14. Chapter 12: Developing a Ping-Pong Game
    1. The Strategy
    2. The Code
    3. Finishing the Ping-Pong Game
    4. Try It
  15. Chapter 13: Error Handling
    1. Stack Trace
    2. Java Exceptions
    3. Exception Hierarchy
    4. try/catch Blocks
    5. The throws Clause
    6. The finally Clause
    7. The throw Operator
    8. Creating Your Own Exceptions
    9. Try It
  16. Chapter 14: Introduction to Collections
    1. Arrays Revisited
    2. Classes ArrayList and Vector
    3. Collection Interfaces from java.util
    4. Classes Hashtable and HashMap
    5. Enumeration and Iterator
    6. Class LinkedList
    7. Class BitSet
    8. Try It
  17. Chapter 15: Introduction to Generics
    1. Generics with Classes
    2. Defining Generics
    3. Wild Cards
    4. Bounded Wild Cards
    5. Generic Methods
    6. What to Read Next
    7. Try It
  18. Chapter 16: Working with Streams
    1. Byte Streams
    2. Buffered Streams
    3. Character Streams
    4. Data Streams
    5. The Class File
    6. Try It
  19. Chapter 17: Java Serialization
    1. The Class ObjectOutputStream
    2. The Class ObjectInputStream
    3. The Interface Externalizable
    4. Class Versioning
    5. Serializing into Byte Arrays
    6. Try It
  20. Chapter 18: Network Programming
    1. Reading Data from the Internet
    2. Connecting through HTTP Proxy Servers
    3. How to Download Files from the Internet
    4. The Stock Quote Program
    5. Socket Programming
    6. Try It
  21. Chapter 19: Processing E-Mails with Java
    1. Protocols and Servers
    2. Creating Birthday Mailer
    3. How to Retrieve E-Mails
    4. Useful Open-Source Components
    5. Try It
  22. Chapter 20: Introduction to Multi-Threading
    1. The Class Thread
    2. The Interface Runnable
    3. Sleeping Threads
    4. How to Kill a Thread
    5. Thread Priorities
    6. Thread Synchronization and Race Conditions
    7. Thread States
    8. Wait and Notify
    9. Try It
  23. Chapter 21: Digging Deeper into Concurrent Execution
    1. Joining Threads
    2. Goodies from java.util.concurrent
    3. SwingWorker Thread
    4. Try It
  24. Chapter 22: Working with Databases Using JDBC
    1. JDBC Driver Types
    2. Creating a Database with Derby
    3. Sample JDBC Program
    4. Processing Result Sets
    5. The PreparedStatement Class
    6. The CallableStatement Class
    7. The ResultSetMetaData Class
    8. Scrollable Result Sets and RowSet
    9. Transactional Updates
    10. Connection Pools and DataSources
    11. Try It
  25. Chapter 23: Swing with JTable
    1. JTable and the MVC Paradigm
    2. The Model
    3. Introduction to Renderers
    4. Summary
    5. Try It
  26. Chapter 24: Annotations and Reflection
    1. Java Annotations Basics
    2. Custom Annotations
    3. Reflection
    4. Run-Time Annotation Processing
    5. Summary
    6. Try It
  27. Chapter 25: Remote Method Invocation
    1. Developing Applications with RMI
    2. Try It
  28. Chapter 26: Java EE 6 Overview
    1. The Big Picture
    2. Profiles and Pruning
    3. Miscellaneous Concepts
    4. Try It
  29. Chapter 27: Programming with Servlets
    1. The Big Picture
    2. The Thin Client
    3. How to Write a Servlet
    4. How to Deploy a Servlet
    5. Installing the GlassFish Plug-In for Eclipse
    6. How to Create a Servlet with Eclipse
    7. Browser-Servlet Data Flow
    8. HTTP Get and Post Requests
    9. Session Tracking
    10. Event Listeners
    11. Asynchronous Servlets
    12. Try It
  30. Chapter 28: JavaServer Pages
    1. Embedding Java Code into HTML
    2. Implicit JSP Objects
    3. Overview of the JSP Tags
    4. Error Pages
    5. JavaBeans
    6. Loading JSP from Servlets
    7. Tag Libraries
    8. JSTL
    9. Try It
  31. Chapter 29: Developing Web Applications with JSF
    1. The Big Picture
    2. Managed Beans
    3. Creating a JSF Website
    4. Converters and Validators
    5. Try It
  32. Chapter 30: Introducing JMS and MOM
    1. Messaging Concepts and Terminology
    2. Two Modes of Message Delivery
    3. JMS API Overview
    4. Types of Messages
    5. How to Send a Message
    6. How to Receive a Message
    7. How to Publish a Message
    8. How to Subscribe for a Topic
    9. Message Selectors
    10. Administering Objects in Open MQ
    11. Try It
  33. Chapter 31: Introducing JNDI
    1. Java Naming and Directory Interface
    2. Administering JNDI Objects in GlassFish
    3. Accessing the GlassFish Naming Service with JNDI
    4. Injection of JNDI Resources
    5. DataSource and JNDI
    6. Lightweight Directory Access Protocol
    7. Try It
  34. Chapter 32: Introduction to Enterprise JavaBeans
    1. Who Needs EJB Containers?
    2. Types of EJBs
    3. Stateless Session Beans
    4. Stateful Session Beans
    5. Singleton Beans
    6. Deploying EJB
    7. Message-Driven Beans
    8. Timer Service
    9. Summary
    10. Try It
  35. Chapter 33: Introduction to the Java Persistence API
    1. The Big Picture
    2. Mapping Objects to Database Tables
    3. JPQL
    4. EntityManager
    5. A Brief Introduction to the Criteria API
    6. Bean Validation
    7. Try It
  36. Chapter 34: Working with RESTful Web Services
    1. The SOAP Web Services
    2. The RESTful Web Services
    3. The RESTful Stock Server
    4. Try It
  37. Chapter 35: Introduction to Spring MVC Framework
    1. Bean Wiring
    2. Overview of Spring MVC
    3. Processing HTML with Spring
    4. Try It
  38. Chapter 36: Introduction to Hibernate Framework
    1. The Big Picture
    2. Installing and Configuring Hibernate
    3. Retrieving Data with Hibernate
    4. Try It
  39. Chapter 37: Bringing JavaFX to the Mix
    1. Consuming Stock Quotes with JavaFX
    2. Code Walkthrough
    3. Try It
  40. Chapter 38: Java Technical Interviews
    1. Getting the Interview
    2. Doing Well at the Interview
    3. Considering the Offer
    4. Interviewing Enterprise Developers
    5. To Get or Not to Get Certified?
    6. Technical Questions and Answers
    7. Epilogue
  41. Appendix: What’s on the DVD?
    1. Using the DVD on a PC
    2. Using the DVD on a Mac
    3. What’s on the DVD?
    4. Troubleshooting
    5. Customer Care
  42. Introduction
    1. Who This Book Is For
    2. What This Book Covers
    3. How This Book Is Structured
    4. What You Need to Use This Book
    5. How to Read This Book
    6. Conventions
    7. Source Code
    8. Errata
    9. p2p.wrox.com
  43. End-User License Agreement
  44. Download CD/DVD Content