ورود به حساب

نام کاربری گذرواژه

گذرواژه را فراموش کردید؟ کلیک کنید

حساب کاربری ندارید؟ ساخت حساب

ساخت حساب کاربری

نام نام کاربری ایمیل شماره موبایل گذرواژه

برای ارتباط با ما می توانید از طریق شماره موبایل زیر از طریق تماس و پیامک با ما در ارتباط باشید


09117307688
09117179751

در صورت عدم پاسخ گویی از طریق پیامک با پشتیبان در ارتباط باشید

دسترسی نامحدود

برای کاربرانی که ثبت نام کرده اند

ضمانت بازگشت وجه

درصورت عدم همخوانی توضیحات با کتاب

پشتیبانی

از ساعت 7 صبح تا 10 شب

دانلود کتاب Java How to Program

دانلود کتاب جاوا چگونه برنامه ریزی کنیم

Java How to Program

مشخصات کتاب

Java How to Program

ویرایش: 9 
نویسندگان:   
سری: early objects) (9th Edition) (Deitel 
ISBN (شابک) : 0132575663, 9780132575669 
ناشر: Prentice Hall 
سال نشر: 2011 
تعداد صفحات: 1535 
زبان: English 
فرمت فایل : PDF (درصورت درخواست کاربر به PDF، EPUB یا AZW3 تبدیل می شود) 
حجم فایل: 24 مگابایت 

قیمت کتاب (تومان) : 60,000



ثبت امتیاز به این کتاب

میانگین امتیاز به این کتاب :
       تعداد امتیاز دهندگان : 8


در صورت تبدیل فایل کتاب Java How to Program به فرمت های PDF، EPUB، AZW3، MOBI و یا DJVU می توانید به پشتیبان اطلاع دهید تا فایل مورد نظر را تبدیل نمایند.

توجه داشته باشید کتاب جاوا چگونه برنامه ریزی کنیم نسخه زبان اصلی می باشد و کتاب ترجمه شده به فارسی نمی باشد. وبسایت اینترنشنال لایبرری ارائه دهنده کتاب های زبان اصلی می باشد و هیچ گونه کتاب ترجمه شده یا نوشته شده به فارسی را ارائه نمی دهد.


توضیحاتی در مورد کتاب جاوا چگونه برنامه ریزی کنیم



سری پیشگامانه How to Program Deitels وسعت و عمق بی نظیری از مفاهیم برنامه نویسی شی گرا و موضوعات سطح متوسط ​​را برای مطالعه بیشتر ارائه می دهد. رویکرد کد زنده آنها دارای هزاران خط کد در صدها برنامه کاری کامل است. این به خوانندگان امکان می‌دهد تأیید کنند که برنامه‌ها طبق انتظار اجرا می‌شوند. جاوا نحوه برنامه‌نویسی (اشیاء اولیه) 9e شامل یک مطالعه موردی گسترده OOD/UML 2 در توسعه و پیاده‌سازی نرم‌افزار برای ماشین باجه خودکار است. این نسخه هر دو جاوا را پوشش می‌دهد. SE7 و SE6.


توضیحاتی درمورد کتاب به خارجی

The Deitels’ groundbreaking How to Program series offers unparalleled breadth and depth of object-oriented programming concepts and intermediate-level topics for further study. Their Live Code Approach features thousands of lines of code in hundreds of complete working programs. This enables readers  to confirm that programs run as expected. Java How to Program (Early Objects) 9e contains an optional extensive OOD/UML 2 case study on developing and implementing the software for an automated teller machine.This edition covers both Java SE7 and SE6.



فهرست مطالب

Cover......Page 1
Title Page......Page 5
Copyright Page......Page 6
Contents......Page 9
Preface......Page 25
Acknowledgments......Page 32
About the Authors......Page 33
Before You Begin......Page 35
1 Introduction to Computers and Java......Page 39
1.1 Introduction......Page 40
1.2 Computers: Hardware and Software......Page 43
1.3 Data Hierarchy......Page 44
1.4 Computer Organization......Page 46
1.5 Machine Languages, Assembly Languages and High-Level Languages......Page 48
1.6 Introduction to Object Technology......Page 49
1.7 Operating Systems......Page 51
1.8 Programming Languages......Page 54
1.9 Java and a Typical Java Development Environment......Page 56
1.10 Test-Driving a Java Application......Page 60
1.11 Web 2.0: Going Social......Page 64
1.12 Software Technologies......Page 67
1.13 Keeping Up-to-Date with Information Technologies......Page 69
1.14 Wrap-Up......Page 70
2 Introduction to Java Applications......Page 75
2.2 Your First Program in Java: Printing a Line of Text......Page 76
2.3 Modifying Your First Java Program......Page 82
2.4 Displaying Text with printf......Page 84
2.5 Another Application: Adding Integers......Page 85
2.6 Memory Concepts......Page 90
2.7 Arithmetic......Page 91
2.8 Decision Making: Equality and Relational Operators......Page 94
2.9 Wrap-Up......Page 98
3 Introduction to Classes, Objects, Methods and Strings......Page 109
3.2 Declaring a Class with a Method and Instantiating an Object of a Class......Page 110
3.3 Declaring a Method with a Parameter......Page 114
3.4 Instance Variables, set Methods and get Methods......Page 117
3.5 Primitive Types vs. Reference Types......Page 122
3.6 Initializing Objects with Constructors......Page 123
3.7 Floating-Point Numbers and Type double......Page 126
3.8 (Optional) GUI and Graphics Case Study: Using Dialog Boxes......Page 130
3.9 Wrap-Up......Page 133
4 Control Statements: Part 1......Page 140
4.2 Algorithms......Page 141
4.4 Control Structures......Page 142
4.6 if …else Double-Selection Statement......Page 145
4.7 while Repetition Statement......Page 150
4.8 Formulating Algorithms: Counter-Controlled Repetition......Page 151
4.9 Formulating Algorithms: Sentinel-Controlled Repetition......Page 156
4.10 Formulating Algorithms: Nested Control Statements......Page 163
4.12 Increment and Decrement Operators......Page 168
4.14 (Optional) GUI and Graphics Case Study: Creating Simple Drawings......Page 172
4.15 Wrap-Up......Page 176
5 Control Statements: Part 2......Page 189
5.2 Essentials of Counter-Controlled Repetition......Page 190
5.3 for Repetition Statement......Page 192
5.4 Examples Using the for Statement......Page 196
5.5 do…while Repetition Statement......Page 200
5.6 switch Multiple-Selection Statement......Page 202
5.7 break and continue Statements......Page 210
5.8 Logical Operators......Page 211
5.9 Structured Programming Summary......Page 217
5.10 (Optional) GUI and Graphics Case Study: Drawing Rectangles and Ovals......Page 222
5.11 Wrap-Up......Page 225
6 Methods: A Deeper Look......Page 235
6.2 Program Modules in Java......Page 236
6.3 static Methods, static Fields and Class Math......Page 238
6.4 Declaring Methods with Multiple Parameters......Page 240
6.5 Notes on Declaring and Using Methods......Page 243
6.6 Method-Call Stack and Activation Records......Page 244
6.7 Argument Promotion and Casting......Page 245
6.8 Java API Packages......Page 246
6.9 Case Study: Random-Number Generation......Page 248
6.9.2 Random-Number Repeatability for Testing and Debugging......Page 252
6.10 Case Study: A Game of Chance; Introducing Enumerations......Page 253
6.11 Scope of Declarations......Page 257
6.12 Method Overloading......Page 260
6.13 (Optional) GUI and Graphics Case Study: Colors and Filled Shapes......Page 262
6.14 Wrap-Up......Page 265
7 Arrays and ArrayLists......Page 278
7.1 Introduction......Page 279
7.2 Arrays......Page 280
7.3 Declaring and Creating Arrays......Page 281
7.4 Examples Using Arrays......Page 282
7.5 Case Study: Card Shuffling and Dealing Simulation......Page 292
7.6 Enhanced for Statement......Page 296
7.7 Passing Arrays to Methods......Page 297
7.8 Case Study: Class GradeBook Using an Array to Store Grades......Page 300
7.9 Multidimensional Arrays......Page 306
7.10 Case Study: Class GradeBook Using a Two-Dimensional Array......Page 309
7.11 Variable-Length Argument Lists......Page 316
7.12 Using Command-Line Arguments......Page 317
7.13 Class Arrays......Page 319
7.14 Introduction to Collections and Class ArrayList......Page 322
7.15 (Optional) GUI and Graphics Case Study: Drawing Arcs......Page 324
7.16 Wrap-Up......Page 327
8 Classes and Objects: A Deeper Look......Page 349
8.2 Time Class Case Study......Page 350
8.3 Controlling Access to Members......Page 354
8.4 Referring to the Current Object’s Members with the this Reference......Page 355
8.5 Time Class Case Study: Overloaded Constructors......Page 358
8.7 Notes on Set and Get Methods......Page 364
8.8 Composition......Page 366
8.9 Enumerations......Page 369
8.10 Garbage Collection and Method finalize......Page 371
8.11 static Class Members......Page 372
8.12 static Import......Page 376
8.13 final Instance Variables......Page 377
8.14 Time Class Case Study: Creating Packages......Page 378
8.15 Package Access......Page 383
8.16 (Optional) GUI and Graphics Case Study: Using Objects with Graphics......Page 385
8.17 Wrap-Up......Page 389
9 Object-Oriented Programming: Inheritance......Page 397
9.1 Introduction......Page 398
9.2 Superclasses and Subclasses......Page 399
9.3 protected Members......Page 401
9.4.1 Creating and Using a CommissionEmployee Class......Page 402
9.4.2 Creating and Using a BasePlusCommissionEmployee Class......Page 408
9.4.3 Creating a CommissionEmployee–BasePlusCommissionEmployee Inheritance Hierarchy......Page 413
9.4.4 CommissionEmployee–BasePlusCommissionEmployee Inheritance Hierarchy Using protected Instance Variables......Page 415
9.4.5 CommissionEmployee–BasePlusCommissionEmployee Inheritance Hierarchy Using private Instance Variables......Page 418
9.5 Constructors in Subclasses......Page 423
9.6 Software Engineering with Inheritance......Page 424
9.7 Class Object......Page 425
9.8 (Optional) GUI and Graphics Case Study: Displaying Text and Images Using Labels......Page 426
9.9 Wrap-Up......Page 429
10 Object-Oriented Programming: Polymorphism......Page 432
10.1 Introduction......Page 433
10.2 Polymorphism Examples......Page 435
10.3 Demonstrating Polymorphic Behavior......Page 436
10.4 Abstract Classes and Methods......Page 438
10.5 Case Study: Payroll System Using Polymorphism......Page 441
10.5.1 Abstract Superclass Employee......Page 442
10.5.2 Concrete Subclass SalariedEmployee......Page 445
10.5.3 Concrete Subclass HourlyEmployee......Page 446
10.5.4 Concrete Subclass CommissionEmployee......Page 448
10.5.5 Indirect Concrete Subclass BasePlusCommissionEmployee......Page 450
10.5.6 Polymorphic Processing, Operator instanceof and Downcasting......Page 451
10.6 final Methods and Classes......Page 456
10.7 Case Study: Creating and Using Interfaces......Page 457
10.7.1 Developing a Payable Hierarchy......Page 459
10.7.3 Class Invoice......Page 460
10.7.4 Modifying Class Employee to Implement Interface Payable......Page 463
10.7.5 Modifying Class SalariedEmployee for Use in the Payable Hierarchy......Page 465
10.7.6 Using Interface Payable to Process Invoices and Employees Polymorphically......Page 466
10.7.7 Common Interfaces of the Java API......Page 468
10.8 (Optional) GUI and Graphics Case Study: Drawing with Polymorphism......Page 469
10.9 Wrap-Up......Page 471
11 Exception Handling: A Deeper Look......Page 476
11.2 Example: Divide by Zero without Exception Handling......Page 477
11.3 Example: Handling ArithmeticExceptions and InputMismatchExceptions......Page 480
11.5 Java Exception Hierarchy......Page 485
11.6 finally Block......Page 488
11.7 Stack Unwinding and Obtaining Information from an Exception Object......Page 492
11.8 Chained Exceptions......Page 495
11.9 Declaring New Exception Types......Page 497
11.10 Preconditions and Postconditions......Page 498
11.11 Assertions......Page 499
11.12 (New in Java SE 7) Multi-catch: Handling Multiple Exceptions in One catch......Page 500
11.14 Wrap-Up......Page 501
12 ATM Case Study, Part 1: Object-Oriented Design with the UML......Page 507
12.2 Examining the Requirements Document......Page 508
12.3 Identifying the Classes in a Requirements Document......Page 516
12.4 Identifying Class Attributes......Page 522
12.5 Identifying Objects’ States and Activities......Page 527
12.6 Identifying Class Operations......Page 531
12.7 Indicating Collaboration Among Objects......Page 537
12.8 Wrap-Up......Page 544
13 ATM Case Study Part 2: Implementing an Object-Oriented Design......Page 548
13.2 Starting to Program the Classes of the ATM System......Page 549
13.3 Incorporating Inheritance and Polymorphism into the ATM System......Page 554
13.4 ATM Case Study Implementation......Page 560
13.4.1 Class ATM......Page 561
13.4.2 Class Screen......Page 566
13.4.3 Class Keypad......Page 567
13.4.4 Class CashDispenser......Page 568
13.4.5 Class DepositSlot......Page 569
13.4.6 Class Account......Page 570
13.4.7 Class BankDatabase......Page 572
13.4.8 Class Transaction......Page 575
13.4.9 Class BalanceInquiry......Page 576
13.4.10 Class Withdrawal......Page 577
13.4.11 Class Deposit......Page 581
13.5 Wrap-Up......Page 584
14 GUI Components: Part 1......Page 587
14.1 Introduction......Page 588
14.2 Java’s New Nimbus Look-and-Feel......Page 589
14.3 Simple GUI-Based Input/Output with JOptionPane......Page 590
14.4 Overview of Swing Components......Page 593
14.5 Displaying Text and Images in a Window......Page 595
14.6 Text Fields and an Introduction to Event Handling with Nested Classes......Page 599
14.7 Common GUI Event Types and Listener Interfaces......Page 605
14.8 How Event Handling Works......Page 607
14.9 JButton......Page 609
14.10.1 JCheckBox......Page 612
14.10.2 JRadioButton......Page 615
14.11 JComboBox; Using an Anonymous Inner Class for Event Handling......Page 618
14.12 JList......Page 622
14.13 Multiple-Selection Lists......Page 624
14.14 Mouse Event Handling......Page 627
14.15 Adapter Classes......Page 632
14.16 JPanel Subclass for Drawing with the Mouse......Page 635
14.17 Key Event Handling......Page 639
14.18 Introduction to Layout Managers......Page 642
14.18.1 FlowLayout......Page 643
14.18.2 BorderLayout......Page 646
14.18.3 GridLayout......Page 649
14.19 Using Panels to Manage More Complex Layouts......Page 651
14.20 JTextArea......Page 653
14.21 Wrap-Up......Page 656
15 Graphics and Java 2D......Page 669
15.1 Introduction......Page 670
15.2 Graphics Contexts and Graphics Objects......Page 672
15.3 Color Control......Page 673
15.4 Manipulating Fonts......Page 680
15.5 Drawing Lines, Rectangles and Ovals......Page 685
15.6 Drawing Arcs......Page 689
15.7 Drawing Polygons and Polylines......Page 692
15.8 Java 2D API......Page 695
15.9 Wrap-Up......Page 702
16 Strings, Characters and Regular Expressions......Page 710
16.2 Fundamentals of Characters and Strings......Page 711
16.3.1 String Constructors......Page 712
16.3.2 String Methods length, charAt and getChars......Page 713
16.3.3 Comparing Strings......Page 714
16.3.4 Locating Characters and Substrings in Strings......Page 719
16.3.5 Extracting Substrings from Strings......Page 721
16.3.7 Miscellaneous String Methods......Page 722
16.3.8 String Method valueOf......Page 724
16.4 Class StringBuilder......Page 725
16.4.2 StringBuilder Methods length, capacity, setLength and ensureCapacity......Page 726
16.4.3 StringBuilder Methods charAt, setCharAt, getChars and reverse......Page 728
16.4.4 StringBuilder append Methods......Page 729
16.4.5 StringBuilder Insertion and Deletion Methods......Page 731
16.5 Class Character......Page 732
16.6 Tokenizing Strings......Page 737
16.7 Regular Expressions, Class Pattern and Class Matcher......Page 738
16.8 Wrap-Up......Page 746
17 Files, Streams and Object Serialization......Page 757
17.2 Files and Streams......Page 758
17.3 Class File......Page 760
17.4.1 Creating a Sequential-Access Text File......Page 764
17.4.2 Reading Data from a Sequential-Access Text File......Page 771
17.4.3 Case Study: A Credit-Inquiry Program......Page 774
17.4.4 Updating Sequential-Access Files......Page 779
17.5 Object Serialization......Page 780
17.5.1 Creating a Sequential-Access File Using Object Serialization......Page 781
17.5.2 Reading and Deserializing Data from a Sequential-Access File......Page 787
17.6.1 Interfaces and Classes for Byte-Based Input and Output......Page 789
17.6.2 Interfaces and Classes for Character-Based Input and Output......Page 791
17.7 Opening Files with JFileChooser......Page 792
17.8 Wrap-Up......Page 795
18 Recursion......Page 803
18.1 Introduction......Page 804
18.2 Recursion Concepts......Page 805
18.3 Example Using Recursion: Factorials......Page 806
18.4 Example Using Recursion: Fibonacci Series......Page 809
18.5 Recursion and the Method-Call Stack......Page 812
18.6 Recursion vs. Iteration......Page 814
18.7 Towers of Hanoi......Page 815
18.8 Fractals......Page 817
18.10 Wrap-Up......Page 828
19 Searching, Sorting and Big O......Page 836
19.1 Introduction......Page 837
19.2.1 Linear Search......Page 838
19.2.2 Binary Search......Page 842
19.3 Sorting Algorithms......Page 847
19.3.1 Selection Sort......Page 848
19.3.2 Insertion Sort......Page 852
19.3.3 Merge Sort......Page 855
19.4 Wrap-Up......Page 862
20 Generic Collections......Page 867
20.2 Collections Overview......Page 868
20.3 Type-Wrapper Classes for Primitive Types......Page 869
20.5 Interface Collection and Class Collections......Page 870
20.6 Lists......Page 871
20.6.1 ArrayList and Iterator......Page 872
20.6.2 LinkedList......Page 874
20.7 Collections Methods......Page 879
20.7.1 Method sort......Page 880
20.7.2 Method shuffle......Page 883
20.7.3 Methods reverse, fill, copy, max and min......Page 885
20.7.4 Method binarySearch......Page 887
20.7.5 Methods addAll, frequency and disjoint......Page 889
20.8 Stack Class of Package java.util......Page 891
20.9 Class PriorityQueue and Interface Queue......Page 893
20.10 Sets......Page 894
20.11 Maps......Page 897
20.12 Properties Class......Page 901
20.14 Unmodifiable Collections......Page 904
20.16 Wrap-Up......Page 905
21 Generic Classes and Methods......Page 911
21.2 Motivation for Generic Methods......Page 912
21.3 Generic Methods: Implementation and Compile-Time Translation......Page 915
21.4 Additional Compile-Time Translation Issues: Methods That Use a Type Parameter as the Return Type......Page 918
21.6 Generic Classes......Page 921
21.7 Raw Types......Page 929
21.8 Wildcards in Methods That Accept Type Parameters......Page 933
21.9 Generics and Inheritance: Notes......Page 937
21.10 Wrap-Up......Page 938
22 Custom Generic Data Structures......Page 942
22.2 Self-Referential Classes......Page 943
22.3 Dynamic Memory Allocation......Page 944
22.4 Linked Lists......Page 945
22.5 Stacks......Page 955
22.6 Queues......Page 959
22.7 Trees......Page 962
22.8 Wrap-Up......Page 968
23 Applets and Java Web Start......Page 979
23.1 Introduction......Page 980
23.2 Sample Applets Provided with the JDK......Page 981
23.3 Simple Java Applet: Drawing a String......Page 985
23.3.1 Executing WelcomeApplet in the appletviewer......Page 987
23.4 Applet Life-Cycle Methods......Page 989
23.5 Initialization with Method init......Page 990
23.6 Sandbox Security Model......Page 992
23.7.1 Packaging the DrawTest Applet for Use with Java Web Start......Page 994
23.7.2 JNLP Document for the DrawTest Applet......Page 995
23.8 Wrap-Up......Page 999
24 Multimedia: Applets and Applications......Page 1005
24.1 Introduction......Page 1006
24.2 Loading, Displaying and Scaling Images......Page 1007
24.3 Animating a Series of Images......Page 1013
24.4 Image Maps......Page 1020
24.5 Loading and Playing Audio Clips......Page 1023
24.6 Playing Video and Other Media with Java Media Framework......Page 1026
24.8 Web Resources......Page 1030
25 GUI Components: Part 2......Page 1038
25.2 JSlider......Page 1039
25.3 Windows: Additional Notes......Page 1043
25.4 Using Menus with Frames......Page 1044
25.5 JPopupMenu......Page 1052
25.6 Pluggable Look-and-Feel......Page 1055
25.7 JDesktopPane and JInternalFrame......Page 1060
25.8 JTabbedPane......Page 1064
25.9 Layout Managers: BoxLayout and GridBagLayout......Page 1066
25.10 Wrap-Up......Page 1078
26 Multithreading......Page 1083
26.1 Introduction......Page 1084
26.2 Thread States: Life Cycle of a Thread......Page 1086
26.3 Creating and Executing Threads with Executor Framework......Page 1089
26.4 Thread Synchronization......Page 1092
26.4.1 Unsynchronized Data Sharing......Page 1093
26.4.2 Synchronized Data Sharing—Making Operations Atomic......Page 1097
26.5 Producer/Consumer Relationship without Synchronization......Page 1100
26.6 Producer/Consumer Relationship: ArrayBlockingQueue......Page 1108
26.7 Producer/Consumer Relationship with Synchronization......Page 1111
26.8 Producer/Consumer Relationship: Bounded Buffers......Page 1117
26.9 Producer/Consumer Relationship: The Lock and Condition Interfaces......Page 1124
26.10 Concurrent Collections Overview......Page 1131
26.11 Multithreading with GUI......Page 1133
26.11.1 Performing Computations in a Worker Thread......Page 1134
26.11.2 Processing Intermediate Results with SwingWorker......Page 1140
26.13 Java SE 7: Fork/Join Framework......Page 1147
26.14 Wrap-Up......Page 1148
27 Networking......Page 1156
27.1 Introduction......Page 1157
27.2 Manipulating URLs......Page 1158
27.3 Reading a File on a Web Server......Page 1163
27.4 Establishing a Simple Server Using Stream Sockets......Page 1166
27.6 Client/Server Interaction with Stream Socket Connections......Page 1168
27.7 Datagrams: Connectionless Client/Server Interaction......Page 1180
27.8 Client/Server Tic-Tac-Toe Using a Multithreaded Server......Page 1188
27.10 Wrap-Up......Page 1203
28 Accessing Databases with JDBC......Page 1209
28.1 Introduction......Page 1210
28.2 Relational Databases......Page 1211
28.3 Relational Database Overview: The books Database......Page 1212
28.4 SQL......Page 1215
28.4.1 Basic SELECT Query......Page 1216
28.4.2 WHERE Clause......Page 1217
28.4.3 ORDER BY Clause......Page 1219
28.4.4 Merging Data from Multiple Tables: INNER JOIN......Page 1220
28.4.5 INSERT Statement......Page 1222
28.4.6 UPDATE Statement......Page 1223
28.5 Instructions for Installing MySQL and MySQL Connector/J......Page 1224
28.6 Instructions for Setting Up a MySQL User Account......Page 1225
28.7 Creating Database books in MySQL......Page 1226
28.8.1 Connecting to and Querying a Database......Page 1227
28.8.2 Querying the books Database......Page 1232
28.9 RowSet Interface......Page 1245
28.10 Java DB/Apache Derby......Page 1247
28.11 PreparedStatements......Page 1249
28.12 Stored Procedures......Page 1264
28.14 Wrap-Up......Page 1265
28.15 Web Resources......Page 1266
29 JavaServer™ FacesWeb Apps: Part 1......Page 1273
29.1 Introduction......Page 1274
29.2 HyperText Transfer Protocol (HTTP) Transactions......Page 1275
29.3 Multitier Application Architecture......Page 1278
29.4 Your First JSF Web App......Page 1279
29.4.1 The Default index.xhtml Document: Introducing Facelets......Page 1280
29.4.2 Examining the WebTimeBean Class......Page 1282
29.4.3 Building the WebTime JSF Web App in NetBeans......Page 1284
29.6 Common JSF Components......Page 1288
29.7 Validation Using JSF Standard Validators......Page 1292
29.8 Session Tracking......Page 1299
29.8.1 Cookies......Page 1300
29.8.2 Session Tracking with @SessionScoped Beans......Page 1301
29.9 Wrap-Up......Page 1307
30 JavaServer™ FacesWeb Apps: Part 2......Page 1314
30.2 Accessing Databases in Web Apps......Page 1315
30.2.1 Setting Up the Database......Page 1317
30.2.2 @ManagedBean Class AddressBean......Page 1320
30.2.3 index.xhtml Facelets Page......Page 1324
30.2.4 addentry.xhtml Facelets Page......Page 1326
30.3 Ajax......Page 1328
30.4 Adding Ajax Functionality to the Validation App......Page 1330
30.5 Wrap-Up......Page 1333
31 Web Services......Page 1337
31.1 Introduction......Page 1338
31.4 Representational State Transfer (REST)......Page 1340
31.6.1 Creating a Web Application Project and Adding a Web Service Class in NetBeans......Page 1341
31.6.2 Defining the WelcomeSOAP Web Service in NetBeans......Page 1342
31.6.3 Publishing the WelcomeSOAP Web Service from NetBeans......Page 1345
31.6.4 Testing the WelcomeSOAP Web Service with GlassFish Application Server’s Tester Web Page......Page 1346
31.6.5 Describing a Web Service with the Web Service Description Language (WSDL)......Page 1347
31.6.6 Creating a Client to Consume the WelcomeSOAP Web Service......Page 1348
31.6.7 Consuming the WelcomeSOAP Web Service......Page 1350
31.7.1 Creating a REST-Based XML Web Service......Page 1353
31.7.2 Consuming a REST-Based XML Web Service......Page 1356
31.8.1 Creating a REST-Based JSON Web Service......Page 1358
31.8.2 Consuming a REST-Based JSON Web Service......Page 1360
31.9 Session Tracking in a SOAP Web Service......Page 1362
31.9.1 Creating a Blackjack Web Service......Page 1363
31.9.2 Consuming the Blackjack Web Service......Page 1366
31.10 Consuming a Database-Driven SOAP Web Service......Page 1377
31.10.1 Creating the Reservation Database......Page 1378
31.10.2 Creating a Web Application to Interact with the Reservation Service......Page 1381
31.11 Equation Generator: Returning User-Defined Types......Page 1384
31.11.1 Creating the EquationGeneratorXML Web Service......Page 1387
31.11.2 Consuming the EquationGeneratorXML Web Service......Page 1388
31.11.4 Consuming the EquationGeneratorJSON Web Service......Page 1392
31.12 Wrap-Up......Page 1395
A: Operator Precedence Chart......Page 1403
B: ASCII Character Set......Page 1405
C: Keywords and Reserved Words......Page 1406
D: Primitive Types......Page 1407
E.2 Navigating the Java API......Page 1408
F: Using the Debugger......Page 1416
F.2 Breakpoints and the run, stop, cont and print Commands......Page 1417
F.3 The print and set Commands......Page 1421
F.4 Controlling Execution Using the step, step up and next Commands......Page 1423
F.5 The watch Command......Page 1426
F.6 The clear Command......Page 1429
F.7 Wrap-Up......Page 1431
G: Formatted Output......Page 1433
G.3 Formatting Output with printf......Page 1434
G.4 Printing Integers......Page 1435
G.5 Printing Floating-Point Numbers......Page 1436
G.6 Printing Strings and Characters......Page 1438
G.7 Printing Dates and Times......Page 1439
G.8 Other Conversion Characters......Page 1441
G.9 Printing with Field Widths and Precisions......Page 1443
G.10 Using Flags in the printf Format String......Page 1445
G.12 Printing Literals and Escape Sequences......Page 1449
G.13 Formatting Output with Class Formatter......Page 1450
G.14 Wrap-Up......Page 1451
H: Number Systems......Page 1456
H.1 Introduction......Page 1457
H.2 Abbreviating Binary Numbers as Octal and Hexadecimal Numbers......Page 1460
H.4 Converting from Binary, Octal or Hexadecimal to Decimal......Page 1461
H.5 Converting from Decimal to Binary, Octal or Hexadecimal......Page 1462
H.6 Negative Binary Numbers: Two’s Complement Notation......Page 1464
I.2 GroupLayout Basics......Page 1469
I.3 Building a ColorChooser......Page 1470
I.4 GroupLayout Web Resources......Page 1480
J.2 Splash Screens......Page 1481
J.3 Desktop Class......Page 1483
J.4 Tray Icons......Page 1485
K.2 Popular Mashups......Page 1487
K.4 Deitel Mashups Resource Center......Page 1488
K.6 Mashup Performance and Reliability Issues......Page 1489
L.1 Introduction......Page 1490
L.2 Unicode Transformation Formats......Page 1491
L.4 Advantages/Disadvantages of Unicode......Page 1492
L.5 Using Unicode......Page 1493
L.6 Character Ranges......Page 1495
Appendices on the Web......Page 1497
A......Page 1499
B......Page 1502
C......Page 1503
D......Page 1507
E......Page 1509
F......Page 1510
G......Page 1511
H......Page 1513
I......Page 1514
J......Page 1516
K......Page 1518
L......Page 1519
M......Page 1520
N......Page 1521
O......Page 1522
P......Page 1523
R......Page 1525
S......Page 1527
T......Page 1531
U......Page 1532
W......Page 1533
Z......Page 1534




نظرات کاربران