Java Programming 24-Hour Trainer

A unique book-and-video package 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...

Full description

Saved in:
Bibliographic Details
Main Author: Fain, Yakov
Format: eBook
Language:English
Published: Hoboken John Wiley & Sons, Incorporated 2011
Wrox
Wiley Pub
Edition:1
Series:Wrox programmer to programmer
Subjects:
ISBN:0470889640, 9780470889640
Online Access:Get full text
Tags: Add Tag
No Tags, Be the first to tag this record!
Table of Contents:
  • Java Programming 24-Hour Trainer -- About the Author -- Acknowledgments -- Contents -- Introduction -- Who This Book Is For -- What This Book Covers -- How This Book Is Structured -- What You Need to Use This Book -- How to Read This Book -- Conventions -- Source Code -- Errata -- p2p.wrox.com -- Chapter 1: Introducing Java -- Why Learn Java? -- Setting the Goals -- The Life Cycle of a Java Program -- JDK and JRE -- Java SE and EE -- Downloading and Installing JDK in Windows -- Your First Java Program: Hello World -- Compiling and Running Hello World -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 2: Eclipse IDE -- Introducing Eclipse IDE -- Downloading and Installing Eclipse -- Creating Hello Project in Eclipse -- Creating the HelloWorld Class in Eclipse -- Java Packages -- Completing Code Generation -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 3: Object-Oriented Programming -- Classes and Objects -- Variables, Constants, and Data Types -- Declaring Variables -- Constants -- Primitive Data Types -- Variable Scope -- Wrappers, Autoboxing, and Unboxing -- Program Comments -- First Useful Program -- Conditional Statement if -- switch Statement -- Inheritance -- Method Overriding -- Try It -- Lesson Requirements -- Hints -- Step-by-Step -- Chapter 4: Class Methods -- Method Arguments -- Method Overloading -- Constructors -- The Keyword super -- The Keyword this -- Passing by Value or by Reference -- Variable Scopes -- The Keyword static -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 5: Back to Java Basics -- Arrays -- Loops -- Debugging Java Programs -- More about if and switch Statements -- The Flavors of if Statements -- The switch Statement -- Command-Line Arguments -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 6: Packages, Interfaces, and Encapsulation -- Java Packages -- Encapsulation
  • Java Exceptions -- Exception Hierarchy -- try/catch Blocks -- The throws Clause -- The finally Clause -- The throw Operator -- Creating Your Own Exceptions -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 14: Introduction to Collections -- Arrays Revisited -- Classes ArrayList and Vector -- Collection Interfaces from java.util -- Classes Hashtable and HashMap -- Class Properties -- Enumeration and Iterator -- Class LinkedList -- Class BitSet -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 15: Introduction to Generics -- Generics with Classes -- Defining Generics -- Wild Cards -- Bounded Wild Cards -- Generic Methods -- What to Read Next -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 16: Working with Streams -- Byte Streams -- Buffered Streams -- Character Streams -- Data Streams -- The Class File -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 17: Java Serialization -- The Class ObjectOutputStream -- The Class ObjectInputStream -- The Interface Externalizable -- Class Versioning -- Serializing into Byte Arrays -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 18: Network Programming -- Reading Data from the Internet -- Connecting through HTTP Proxy Servers -- How to Download Files from the Internet -- The Stock Quote Program -- Socket Programming -- Why Use Sockets? -- The Stock Quote Server with Sockets -- Try It -- Lesson Requirements -- Hints -- Step-by-Step -- Chapter 19: Processing E-Mails with Java -- Protocols and Servers -- Creating Birthday Mailer -- Required Supporting Classes -- Writing the Mail Sender -- How to Retrieve E-Mails -- Useful Open-Source Components -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 20: Introduction to Multi-Threading -- The Class Thread -- The Interface Runnable -- Sleeping Threads -- How to Kill a Thread -- Thread Priorities
  • Thread Synchronization and Race Conditions -- Thread States -- Wait and Notify -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 21: Digging Deeper into Concurrent Execution -- Joining Threads -- Goodies from java.util.concurrent -- ReentrantLock versus Synchronized -- Executor Framework -- A Brief Introduction to Concurrent Collections -- SwingWorker Thread -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 22: Working with Databases Using JDBC -- JDBC Driver Types -- Creating a Database with Derby -- Sample JDBC Program -- Processing Result Sets -- The PreparedStatement Class -- The CallableStatement Class -- The ResultSetMetaData Class -- Scrollable Result Sets and RowSet -- Transactional Updates -- Connection Pools and DataSources -- Try It -- Lesson Requirements -- Hint -- Step-by-Step -- Chapter 23: Swing with JTable -- JTable and the MVC Paradigm -- The Model -- Mandatory Callbacks of Table Models -- Optional Callbacks of Table Models -- Introduction to Renderers -- Summary -- Try It -- Lesson Requirements -- Hint -- Step-by-Step -- Chapter 24: Annotations and Reflection -- Java Annotations Basics -- @Override -- @Deprecated -- @Inherited -- @Documented -- Custom Annotations -- Reflection -- Run-Time Annotation Processing -- Summary -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 25: Remote Method Invocation -- Developing Applications with RMI -- Defining Remote Interfaces -- Implementing Remote Interfaces -- Registering Remote Objects -- Writing RMI Clients -- Security Considerations -- Finding Remote Objects -- Try It -- Lesson Requirements -- Hints -- Step-by-Step -- Chapter 26: Java EE 6 Overview -- The Big Picture -- JCP, JSR, and Other Acronyms -- Tiers of Java EE Applications -- Containers versus Application Servers -- Profiles and Pruning -- Miscellaneous Concepts -- Try It -- Lesson Requirements -- Hints
  • Access Levels -- The Keyword final -- final Variables -- final Methods -- final Classes -- Interfaces -- Marker Interfaces -- Casting -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 7: Programming with Abstract Classes and Interfaces -- Abstract Classes -- Assignment -- Solution with an Abstract Class -- Polymorphism -- Making the Interface Solution Polymorphic -- Interfaces versus Abstract Classes -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 8: Introducing the Graphic User Interface -- Swing Basics -- Layout Managers -- A Simple Calculator with FlowLayout -- A Brief Introduction to Layout Managers -- FlowLayout -- GridLayout -- BorderLayout -- Combining Layout Managers -- BoxLayout -- GridBagLayout -- CardLayout -- Containers with Absolute Layout -- More about Swing Widgets -- Swing GUI Builders -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 9: Event Handling in UI -- Introduction to Event Listeners -- Teaching the Calculator to Calculate -- Registering Components with ActionListener -- Finding the Source of an Event -- How to Pass Data between Objects -- More Swing Listeners -- How to Use Adapters -- Inner Classes -- Anonymous Inner Classes -- Closures -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 10: Introduction to Java Applets -- An Unofficial History of Java Applets -- Restrictions of Java Applets -- Learning HTML on the Run -- Writing Applets Using Swing -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 11: Developing a Tic-Tac-Toe Applet -- The Strategy -- Coding Tic-Tac-Toe -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 12: Developing a Ping-Pong Game -- The Strategy -- The Code -- The User Interface -- The Constants -- The Engine -- Finishing the Ping-Pong Game -- Try It -- Lesson Requirements -- Hints -- Step-by-Step -- Chapter 13: Error Handling -- Stack Trace
  • Step-by-Step -- Chapter 27: Programming with Servlets -- The Big Picture -- The Thin Client -- How to Write a Servlet -- How to Deploy a Servlet -- Installing the GlassFish Plug-In for Eclipse -- How to Create a Servlet with Eclipse -- Browser-Servlet Data Flow -- HTTP Get and Post Requests -- Session Tracking -- Cookies -- URL Rewriting -- Server-Side HttpSession -- Filters -- Event Listeners -- Asynchronous Servlets -- Try It -- Lesson Requirements -- Hints -- Step-by-Step -- Chapter 28: JavaServer Pages -- Embedding Java Code into HTML -- Implicit JSP Objects -- Overview of the JSP Tags -- Directives -- Declarations -- Expressions -- Scriptlets -- Comments -- Standard Actions -- Error Pages -- JavaBeans -- Using JavaBeans in JSP -- How Long Does a Bean Live? -- Loading JSP from Servlets -- Tag Libraries -- JSTL -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 29: Developing Web Applications with JSF -- The Big Picture -- Managed Beans -- Creating a JSF Website -- Templating -- Page Navigation -- Converters and Validators -- Try It -- Lesson Requirements -- Hints -- Step-by-Step -- Chapter 30: Introducing JMS and MOM -- Messaging Concepts and Terminology -- Two Modes of Message Delivery -- JMS API Overview -- Types of Messages -- How to Send a Message -- How to Receive a Message -- How to Publish a Message -- How to Subscribe for a Topic -- Message Selectors -- Administering Objects in Open MQ -- Try It -- Lesson Requirements -- Hints -- Step-by-Step -- Chapter 31: Introducing JNDI -- Java Naming and Directory Interface -- Administering JNDI Objects in GlassFish -- Accessing the GlassFish Naming Service with JNDI -- Injection of JNDI Resources -- DataSource and JNDI -- Lightweight Directory Access Protocol -- Try It -- Lesson Requirements -- Step-by-Step -- Chapter 32: Introduction to Enterprise JavaBeans -- Who Needs EJB Containers?
  • Types of EJBs