图书介绍

JAVA核心技术 卷1 基础知识 上 第9版英文版【2025|PDF|Epub|mobi|kindle电子书版本百度云盘下载】

JAVA核心技术 卷1 基础知识 上 第9版英文版
  • (美)CAY S.HORSTMANN,GARY CORNELL著 著
  • 出版社: 北京:人民邮电出版社
  • ISBN:9787115319470
  • 出版时间:2013
  • 标注页数:563页
  • 文件大小:95MB
  • 文件页数:584页
  • 主题词:JAVA语言-程序设计-英文

PDF下载


点此进入-本书在线PDF格式电子书下载【推荐-云解压-方便快捷】直接下载PDF格式图书。移动端-PC端通用
种子下载[BT下载速度快]温馨提示:(请使用BT下载软件FDM进行下载)软件下载地址页直链下载[便捷但速度慢]  [在线试读本书]   [在线获取解压码]

下载说明

JAVA核心技术 卷1 基础知识 上 第9版英文版PDF格式电子书版下载

下载的文件为RAR压缩包。需要使用解压软件进行解压得到PDF格式图书。

建议使用BT下载工具Free Download Manager进行下载,简称FDM(免费,没有广告,支持多平台)。本站资源全部打包为BT种子。所以需要使用专业的BT下载软件进行下载。如BitComet qBittorrent uTorrent等BT下载工具。迅雷目前由于本站不是热门资源。不推荐使用!后期资源热门了。安装了迅雷也可以迅雷进行下载!

(文件页数 要大于 标注页数,上中下等多册电子书除外)

注意:本站所有压缩包均有解压码: 点击下载压缩包解压工具

图书目录

Chapter 1:An Introduction to Java1

1.1 Java As a Programming Platform1

1.2 The Java"White Paper"Buzzwords2

1.2.1 Simple3

1.2.2 Object-Oriented4

1.2.3 Network-Savvy4

1.2.4 Robust5

1.2.5 Secure5

1.2.6 Architecture-Neutral6

1.2.7 Portable7

1.2.8 Interpreted7

1.2.9 High-Performance8

1.2.10 Multithreaded8

1.2.11 Dynamic8

1.3 Java Applets and the Internet9

1.4 A Short History of Java10

1.5 Common Misconceptions about Java13

Chapter 2:The Java Programming Environment17

2.1 Installing the Java Development Kit18

2.1.1 Downloading the JDK18

2.1.2 Setting the Executable Path20

2.1.3 Installing the Library Source and Documentation22

2.1.4 Installing the Core Java Program Examples23

2.1.5 Navigating the Java Directories24

2.2 Choosing a Development Environment24

2.3 Using the Command-Line Tools25

2.3.1 Troubleshooting Hints27

2.4 Using an Integrated Development Environment28

2.4.1 Locating Compilation Errors32

2.5 Running a Graphical Application33

2.6 Building and Running Applets36

Chapter 3:Fundamental Programming Structures in Java41

3.1 A Simple Java Program42

3.2 Comments45

3.3 Data Types46

3.3.1 Integer Types47

3.3.2 Floating-Point Types48

3.3.3 The char Type49

3.3.4 The boolean Type51

3.4 Variables52

3.4.1 Initializing Variables53

3.4.2 Constants54

3.5 Operators55

3.5.1 Increment and Decrement Operators56

3.5.2 Relational and boolean Operators57

3.5.3 Bitwise Operators58

3.5.4 Mathematical Functions and Constants59

3.5.5 Conversions between Numeric Types60

3.5.6 Casts61

3.5.7 Parentheses and Operator Hierarchy62

3.5.8 Enumerated Types63

3.6 Strings64

3.6.1 Substrings64

3.6.2 Concatenation64

3.6.3 Strings Are Immutable65

3.6.4 Testing Strings for Equality67

3.6.5 Empty and Null Strings68

3.6.5 Code Points and Code Units68

3.6.6 The String API69

3.6.7 Reading the Online API Documentation72

3.6.8 Building Strings74

3.7 Input and Output76

3.7.1 Reading Input76

3.7.2 Formatting Output79

3.7.3 File Input and Output84

3.8 Control Flow86

3.8.1 Block Scope86

3.8.2 Conditional Statements87

3.8.3 Loops91

3.8.4 Determinate Loops95

3.8.5 Multiple Selections—The switch Statement99

3.8.6 Statements That Break Control Flow102

3.9 Big Numbers105

3.10 Arrays107

3.10.1 The""for each""Loop109

3.10.2 Array Initializers and Anonymous Arrays110

3.10.3 Array Copying111

3.10.4 Command-Line Parameters112

3.10.5 Array Sorting113

3.10.6 Multidimensional Arrays116

3.10.7 Ragged Arrays120

Chapter 4:Objects and Classes125

4.1 Introduction to Object-Oriented Programming126

4.1.1 Classes127

4.1.2 Objects128

4.1.3 Identifying Classes129

4.1.4 Relationships between Classes129

4.2 Using Predefined Classes132

4.2.1 Objects and Object Variables132

4.2.2 The GregorianCalendar Class of the Java Library136

4.2.3 Mutator and Accessor Methods138

4.3 Defining Your Own Classes145

4.3.1 An Employee Class145

4.3.2 Use of Multiple Source Files148

4.3.3 Dissecting the Employee Class149

4.3.4 First Steps with Constructors150

4.3.5 Implicit and Explicit Parameters152

4.3.6 Benefits of Encapsulation153

4.3.7 Class-Based Access Privileges156

4.3.8 Private Methods156

4.3.9 Final Instance Fields157

4.4 Static Fields and Methods157

4.4.1 Static Fields157

4.4.2 Static Constants158

4.4.3 Static Methods159

4.4.4 Factory Methods161

4.4.5 The main Method161

4.5 Method Parameters164

4.6 Object Construction171

4.6.1 Overloading171

4.6.2 Default Field Initialization172

4.6.3 The Constructor with No Arguments173

4.6.4 Explicit Field Initialization174

4.6.5 Parameter Names175

4.6.6 Calling Another Constructor176

4.6.7 Initialization Blocks176

4.6.8 Object Destruction and the finalize Method181

4.7 Packages182

4.7.1 Class Importation182

4.7.2 Static Imports184

4.7.3 Addition of a Class into a Package185

4.7.4 Package Scope188

4.8 The Class Path190

4.8.1 Setting the Class Path192

4.9 Documentation Comments193

4.9.1 Comment Insertion193

4.9.2 Class Comments194

4.9.3 Method Comments195

4.9.4 Field Comments196

4.9.5 General Comments196

4.9.6 Package and Overview Comments197

4.9.7 Comment Extraction198

4.10 Class Design Hints199

Chapter 5:Inheritance203

5.1 Classes,Superclasses,and Subclasses204

5.1.1 Inheritance Hierarchies212

5.1.2 Polymorphism213

5.1.3 Dynamic Binding214

5.1.4 Preventing Inheritance:Final Classes and Methods217

5.1.5 Casting218

5.1.6 Abstract Classes221

5.1.7 Protected Access227

5.2 Object:The Cosmic Superclass228

5.2.1 The equals Method228

5.2.2 Equality Testing and Inheritance230

5.2.3 The hashCode Method234

5.2.4 The toString Method236

5.3 Generic Array Lists243

5.3.1 Accessing Array List Elements246

5.3.2 Compatibility between Typed and Raw Array Lists249

5.4 Object Wrappers and Autoboxing251

5.5 Methods with a Variable Number of Parameters254

5.6 Enumeration Classes256

5.7 Reflection258

5.7.1 The Class Class259

5.7.2 A Primer on Catching Exceptions261

5.7.3 Using Reflection to Analyze the Capabilities of Classes263

5.7.4 Using Reflection to Analyze Objects at Runtime269

5.7.5 Using Reflection to Write Generic Array Code274

5.7.6 Invoking Arbitrary Methods278

5.8 Design Hints for Inheritance282

Chapter 6:Interfaces and Inner Classes285

6.1 Interfaces286

6.1.1 Properties of Interfaces292

6.1.2 Interfaces and Abstract Classes294

6.2 Object Cloning295

6.3 Interfaces and Callbacks302

6.4 Inner Classes305

6.4.1 Use of an Inner Class to Access Object State307

6.4.2 Special Syntax Rules for Inner Classes311

6.4.3 Are Inner Classes Useful?Actually Necessary?Secure?312

6.4.4 Local Inner Classes315

6.4.5 Accessing final Variables from Outer Methods315

6.4.6 Anonymous Inner Classes318

6.4.7 Static Inner Classes322

6.5 Proxies326

6.5.1 Properties of Proxy Classes331

Chapter 7:Graphics Programming333

7.1 Introducing Swing334

7.2 Creating a Frame339

7.3 Positioning a Frame342

7.3.1 Frame Properties345

7.3.2 Determining a Good Frame Size345

7.4 Displaying Information in a Component350

7.5 Working with 2D Shapes356

7.6 Using Color365

7.7 Using Special Fonts for Text369

7.8 Displaying Images378

Chapter 8:Event Handling383

8.1 Basics of Event Handling383

8.1.1 Example:Handling a Button Click386

8.1.2 Becoming Comfortable with Inner Classes391

8.1.3 Creating Listeners Containing a Single Method Call394

8.1.4 Example:Changing the Look-and-Feel395

8.1.5 Adapter Classes399

8.2 Actions403

8.3 Mouse Events411

8.4 The AWT Event Hierarchy419

8.4.1 Semantic and Low-Level Events421

Chapter 9:User Interface Components with Swing425

9.1 Swing and the Model-View-Controller Design Pattern426

9.1.1 Design Patterns426

9.1.2 The Model-View-Controller Pattern428

9.1.3 A Model-View-Controller Analysis of Swing Buttons432

9.2 Introduction to Layout Management433

9.2.1 Border Layout437

9.2.2 Grid Layout439

9.3 Text Input443

9.3.1 Text Fields444

9.3.2 Labels and Labeling Components446

9.3.3 Password Fields447

9.3.4 Text Areas448

9.3.5 Scroll Panes449

9.4 Choice Components452

9.4.1 Checkboxes452

9.4.2 Radio Buttons454

9.4.3 Bordes458

9.4.4 Combo Boxes462

9.4.5 Sliders466

9.5 Menus473

9.5.1 Menu Building473

9.5.2 Icons in Menu Items476

9.5.3 Checkbox and Radio Button Menu Items477

9.5.4 Pop-UP Menus479

9.5.5 Keyboard Mnemonics and Accelerators480

9.5.6 Enabling and Disabling Menu Items483

9.5.7 Toolbars488

9.5.8 Tooltips490

9.6 Sophisticated Layout Management492

9.6.1 The Grid Bag Layout494

9.6.1.1 The gridx,gridy,gridwidth,and gridheight Parameters496

9.6.1.2 Weight Fields496

9.6.1.3 The fill and anchor Parameters497

9.6.1.4 Padding497

9.6.1.5 AlternativeMethodtoSpecifythe gridx,gridy,gridwidth,and gridheight Parameters497

9.6.1.6 A Helper Class to Tame the Grid Bag Constraints499

9.6.2 Group Layout505

9.6.3 Using No Layout Manager516

9.6.4 Custom Layout Managers516

9.6.5 Traversal Order521

9.7 Dialog Boxes522

9.7.1 Option Dialogs523

9.7.2 Creating Dialogs533

9.7.3 Data Exchange538

9.7.4 File Dialogs545

9.7.5 Color Choosers557

热门推荐