This significantly updated new edition of Developing Java Software is a thorough presentation of object-oriented design and programming concepts using the Java 5 programming language. The book takes the reader from the basics of using Java 5 to the creation of complete, object-oriented programs. Following an ‘objects early’ approach, the core elements of the Java language are covered, including the use of recently added features such as generics. The encouragement of the proper creation and use of classes, and the demonstration of the strategies used to create good quality code are at the core of this book. You will learn how Java programs work and how they can be designed and implemented in an organized and systematic way. In addition, the book addresses how a Java programming project should be managed and introduces the Ant build tool and the Subversion version control system. Testing has always been an important part of Developing Java Software. This edition provides new chapters which give a detailed introduction to Test-driven Development (TDD). This approach to programming introduces more rigor to writing programs by placing emphasis on writing high quality testable and tested code from the outset. A series of examples and case studies shows how TDD works and highlights the strategies for testing code. Reflecting recent changes to the Java programming language and newly focused on first courses in programming, this excellent primer is ideal for classroom use or self-study. The many motivating examples and larger case studies show how core ideas can be applied when creating real applications, and show how to use object-oriented methods effectively to create robust, reliable, and fully-tested Java applications.
作者簡介
暫缺《Java軟件開發(fā)》作者簡介
圖書目錄
Preface Part 1 Programming with Objects and Classes 1 Introduction 2 Programming Fundamentals 3 Adding Structure 4 Introducing Containers 5 Drawing Pictures 6 Classes and Objects 7 Class Relationships 8 Exceptions 9 Introducing Concurrency with Threads 10 User Interfaces Part 2 The Process of Programming 11 The Programming Process 12 Unit Testing 13 Test-driven Programming Strategies 14 Programming Tools Part 3 Case Studies in Developing Programs 15 Introducing the Case Studies 16 Contacts Book 17 Pedestrian Crossing Simulation Part 4 The Java Programming Language in Detail 18 A Java Language Reference 19 Variables, Types and Expressions 20 Flow Control 21 Classes and Packages 22 Inheritance and Interfaces 23 Exception Handling 24 Threads and Concurrency Part 5 Endmatter Appendix A Glossary Appendix B The CRC Method Appendix C The Online Documentation Appendix D Running Java Programs Appendix E Class Input Appendix F Class FileInput Appendix G Class FileOutput Appendix H Class DrawFrame Appendix I Class DrawPanel Appendix J Bibliography Index