This book presents a guide to the core features of Java – and some more recent innovations – enabling the reader to build skills and confidence though tried-and-trusted stages, supported by exercises that reinforce key learning points. All of the most useful and commonly applied Java syntax and libraries are introduced, along with many example programs that can provide the basis for more substantial applications. Use of the Eclipse IDE and the JUnit testing framework is integral to the book, ensuring maximum productivity and code quality, although to ensure that skills are not confined to one environment the fundamentals of the Java compiler and run time are also explained. Additionally, coverage of the Ant tool will equip the reader with the skills to automatically build, test and deploy applications independent of an IDE. Features: presents information on Java 7; contains numerous code examples and exercises; provides source code, self-test questions and PowerPoint slides at an associated website.
Author(s): David Parsons (auth.)
Edition: 1
Publisher: Springer-Verlag London
Year: 2012
Language: English
Pages: 544
Tags: Programming Languages, Compilers, Interpreters; Programming Techniques; Software Engineering
Front Matter....Pages i-xx
The Java Story....Pages 1-8
Compiling and Running Java Programs....Pages 9-28
Data Types, Arithmetic, and Arrays....Pages 29-48
Control Structures....Pages 49-70
Creating Objects....Pages 71-93
Creating Domain Classes....Pages 95-124
Objects Working Together: Association, Aggregation, and Composition....Pages 125-157
Inheritance, Polymorphism, and Interfaces....Pages 159-195
Exception Handling....Pages 197-218
Unit Testing with JUnit....Pages 219-244
Exploring the Java Libraries....Pages 245-261
The Collections Framework and Generics....Pages 263-296
Input and Output Streams....Pages 297-320
Automatic Building and Testing with Ant....Pages 321-336
Java and the Database (JDBC)....Pages 337-355
Multithreading....Pages 357-386
Building GUIs with the JFC Swing Library....Pages 387-416
Event-Driven Programming....Pages 417-464
Dialogs and Menus, Models and Views....Pages 465-501
Java Web Start and Applets....Pages 503-527
Back Matter....Pages 529-543