tailieunhanh - Java By Example
This book is sold as is, without warranty of any kind, either express or implied, respecting the contents of this book, including but not limited to implied warranties for the book's quality, performance, merchantability, or fitness for any particular purpose. Neither Que Corporation nor its dealers or distributors shall be liable to the purchaser or any other person or entity with respect to any liability, loss, or damage caused or alleged to have been caused directly or indirectly by this book | Java By Example Clayton Walnum C O N T E N T S Introduction J Who This Book Is For Hardware and Software Requirements A Compiling the Programs in This Book A Word to the Wise On to the Wonderful World of Java Chapter 1 Java Overview The Java Story Introducing Java Java Programs The Java Developer s Kit Where Is Java Example Installing HotJava A Example Installing the JDK Summary Review Questions Review Exercises http Chapter 2 Running Java Applets The Sample Java Applets o The Appletviewer Tool o Example Running TicTacToe o The Animator Applet o The BarChart Applet o Other Demo Applets Adding Applets to an HTML Document o Optional Attributes for Applets o Applet Parameters o Non-Java Browsers o Example A Java-Powered Home Page Summary Review Questions Review Exercises Chapter 3 Applets and the Internet Local and Remote Applets o Local Applets o Remote Applets Clients and Servers Security Example Your Pages on the Web Summary Review Questions Review Exercises Chapter 4 Object-Oriented Programming Concepts From Switches to Objects An Obvious Yet Brilliant Solution A Object-Oriented Programming http o Encapsulation o Classes as Data Types o Inheritance o Polymorphism o Example Encapsulation Inheritance and Polymorphism Summary Review Questions Review Exercises Chapter 5 Constants and Variables Constants Variables Naming Constants and Variables Example Creating Your Own Identifiers Data Types o Integer Values o Floating-Point Values o Character Values o Boolean Values Variable Scope o Example Determining a Variable s Scope Summary Review Questions Review Exercises Chapter 6 Simple Input and Output Windows and Graphics Displaying Text in an Applet o Example Creating and Running Applet1 o How Applet1 Works Getting Input from the User o How Applet2 Works http .
đang nạp các trang xem trước