点此搜书

Java语言导学 英文版 第3版
  • 作 者:(美)Mary Campione,Kathy Walrath,Alison Huml著
  • 出 版 社:北京:机械工业出版社
  • 出版年份:2004
  • ISBN:7111142292
  • 标注页数:569 页
  • PDF页数:584 页
  • 请阅读订购服务说明与试读!

文档类型

价格(积分)

购买连接

试读

PDF格式

16

立即购买

点击试读

订购服务说明

1、本站所有的书默认都是PDF格式,该格式图书只能阅读和打印,不能再次编辑。

2、除分上下册或者多册的情况下,一般PDF页数一定要大于标注页数才建议下单购买。【本资源584 ≥569页】

图书下载及付费说明

1、所有的电子图书为PDF格式,支持电脑、手机、平板等各类电子设备阅读;可以任意拷贝文件到不同的阅读设备里进行阅读。

2、电子图书在提交订单后一般半小时内处理完成,最晚48小时内处理完成。(非工作日购买会延迟)

3、所有的电子图书都是原书直接扫描方式制作而成。

CHAPTER 1 Getting Started 1

About the Java Technology 2

How Will Java Technology Change My Life? 7

First Steps(Win32) 8

First Steps(UNIX/Linux) 16

First Steps(MacOS) 24

A Closer Look at HelloWorld 32

Questions and Exercises 41

Code Samples 43

CHAPTER 2 Object-Oriented Programming Concepts 45

What Is an Object? 46

What Is a Message? 48

What Is aClass? 49

What Is Inheritance? 52

What Is anInterface? 54

How Do These Concepts Translate into Code? 55

Summary 61

Questions and Exercises 62

Code Samples 63

CHAPTER 3 Language Basics 65

Variables 67

Operators 76

Expressions,Statements,and Blocks 94

Control Flow Statements 99

Code Samples 117

CHAPTER 4 Object Basics and Simple Data Objects 119

The Life Cycle ofan Object 120

Characters and Strings 132

Numbers 149

Arrays 165

Code Samples 174

CHAPTER 5 Classes and Inheritance 177

Creating Classes 178

Managing Inheritance 204

Implementing Nested Classes 218

Code Samples 224

CHAPTER 6 Interfaces and Packages 227

Creating and Using Interfaces 228

Creating and Using Packages 234

Code Samples 242

CHAPTER 7 Handling Errors Using Exceptions 243

What Is an Exception? 244

The Catch or Specify Requirement 245

Catching and Handling Exceptions 246

Specifying the Exceptions Thrown by a Method 255

How to Throw Exceptions 255

Runtime Exceptions—The Controversy 260

Advantages of Exceptions 260

Summary of Exceptions 265

Questions and Exercises 266

Code Samples 268

CHAPTER 8 Threads:Doing Two or More Tasks at Once 269

What Is a Thread? 271

Using the Timer and TimerTask Classes 273

Customizing a Thread's run Method 277

The Life Cycle ofa Thread 281

Understanding Thread Priority 286

Synchronizing Threads 291

Grouping Threads 301

Summary of Threads 307

Questions and Exercises 309

Code Samples 310

CHAPTER 9 I/O:Reading and Writing 313

Overview of I/O Streams 314

Using the Streams 318

Object Serialization 334

Working with Random Access Files 340

And the Rest... 345

Summary of Reading and Writing 346

Questions and Exercises 346

Code Samples 348

CHAPTER 10 User Interfaces That Swing 351

Overview of the Swing API 352

Your First Swing Program 353

Example Two:Swing Application 356

Example Three:Celsius Converter 361

Example Four:LunarPhases 364

Example Five:VoteDialog 368

Layout Management 375

Threads and Swing 378

Visual Index to Swing Components 381

Summary 387

Questions and Exercises 388

Code Samples 390

APPENDIX A Common Problems and Their Solutions 391

Getting Started Problems 391

General Programming Problems 396

Applet Problems 397

User Interface Problems 399

APPENDIX B Internet-Ready Applets 407

Overview of Applets 409

AWT Components 419

Taking Advantage of the Applet API 423

Practical Considerations of Writing Applets 442

Finishing an Applet 454

Swing-Based Applets 457

Code Samples 463

APPENDIX C Collections 467

Introduction 468

Interfaces 470

Implementations 508

Algorithms 515

Custom Implementations 520

Interoperability 523

APPENDIX D Deprecated Thread Methods 527

Why Is Th read.stop Deprecated? 527

Why Are Thread.suspend and Thread.resume Deprecated? 530

What about Thread.destroy? 533

Whv Is Runti me.runFi nalizersOnExit Deprecated? 534

APPENDIX E Reference 535

Java Programming Language Keywords 535

Operator Precedence 536

The <APPLET>Tag 537

POSIX Conventions for Command Line Arguments 539

Integrated Development Environments 540

Path Help 540

Index 545

购买PDF格式(16分)
返回顶部