ورود به حساب

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

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

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

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

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

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


09117307688
09117179751

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

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

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

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

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

پشتیبانی

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

دانلود کتاب Java™ for Programmers

دانلود کتاب Java™ برای برنامه نویسان

Java™ for Programmers

مشخصات کتاب

Java™ for Programmers

دسته بندی: سیستم های عامل
ویرایش: 2nd Edition 
نویسندگان: ,   
سری: Deitel Developer Series 
ISBN (شابک) : 0132821540, 9780132821544 
ناشر: Prentice Hall 
سال نشر: 2011 
تعداد صفحات: 513 
زبان: English 
فرمت فایل : PDF (درصورت درخواست کاربر به PDF، EPUB یا AZW3 تبدیل می شود) 
حجم فایل: 15 مگابایت 

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



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

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


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

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


توضیحاتی در مورد کتاب Java™ برای برنامه نویسان

404 - File or directory not found.

The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.


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

The professional programmer’s Deitel® guide to Java development and the powerful Java platform

Written for programmers with a background in high-level language programming, this book applies the Deitel signature live-code approach to teaching programming and explores the Java language and Java APIs in depth. The book presents concepts in the context of fully tested programs, complete with syntax shading, code highlighting, line-by-line code walkthroughs and program outputs. The book features 200+ complete Java programs with 18,000+ lines of proven Java code, and hundreds of tips that will help you build robust applications.

 

Start with an introduction to Java using an early classes and objects approach, then rapidly move on to more advanced topics, including GUI, graphics, exception handling, generics, collections, JDBC™, web-application development with JavaServer™ Faces, web services and more. You’ll enjoy the Deitels’ classic treatment of object-oriented programming and the OOD/UML® ATM case study, including a complete Java implementation. When you’re finished, you’ll have everything you need to build object-oriented Java applications.

 

Practical, example-rich coverage of:

  • Java SE 7
  • Classes, Objects, Encapsulation, Inheritance, Polymorphism, Interfaces
  • Integrated OOP Case Studies
  • Industrial-Strength, 95-Page OOD/UML® ATM Case Study
  • JavaServer Faces 2.0, Ajax-Enabled Web Apps, Web Services, Networking
  • JDBC, SQL, Java DB, MySQL®
  • Threads and the Concurrency APIs
  • I/O, Types, Control Statements, Methods
  • Arrays, Generics, Collections
  • Exception Handling, Files
  • GUI, Graphics, GroupLayout, JDIC
  • Using the Debugger and the API Docs
  • Online, Three-Chapter Introduction to Android App Development


Visit www.deitel.com

For information on Deitel’s Dive Into® Series instructor-led training courses offered at customer sites worldwide visit www.deitel.com/training or write to deitel@deitel.com

Download code examples

Check out the growing list of programming Resource Centers

Join the Deitel Twitter (@deitel ) and Facebook (www.deitel.com/DeitelFan) communities.

To receive updates for this book, subscribe to the free Deitel® Buzz Online e-mail newsletter at www.deitel.com/newsletter/subscribe.html

 

Comments from Recent Editions’ Reviewers

“Introduces good design practices and methodologies right from the beginning. An excellent starting point for developing high-quality robust Java applications.”

–Simon Ritter, Oracle Corporation

 

“Updated to reflect the state of the art in Java technologies; its deep and crystal clear explanations make it indispensable. Excellent coverage of exception handling. A complete introduction to Java networking. Great coverage of multithreading.”

–José Antonio González Seco, Parliament of Andalusia

 

“Of immense value to practitioners of the object-oriented approach. Demystifies inheritance and polymorphism, and illustrates their use in getting elegant, simple and maintainable code. The OO design case study presents the object-oriented approach, from requirements to Java code.”

–Vinod Varma, Astra Infotech Private Limited

 

“ I wish I had this book when I was learning how to program! Good introduction to UML and the software engineering process.”

–Lance Andersen, Oracle

 

“You’ll be well on your way to becoming a great Java programmer with this book. The polymorphism and generic collections chapters are excellent.”

–Peter Pilgrim, Java Champion, Consultant

 

“The transition from design to implementation is explained powerfully–the reader can easily understand the design issues and how to implement them in Java.”

–S. Sivakumar, Astra Infotech Private Limited

 

“Gives programmers the benefit of the wisdom derived from many years of software development experience!”

–Edward F. Gehringer, North Carolina State University

 



فهرست مطالب

Contents......Page 8
Preface......Page 22
Before You Begin......Page 30
1 Introduction......Page 34
1.2 Introduction to Object Technology......Page 35
1.3 Open Source Software......Page 38
1.4 Java and a Typical Java Development Environment......Page 40
1.5 Test-Driving a Java Application......Page 44
1.6 Web 2.0: Going Social......Page 48
1.7 Software Technologies......Page 51
1.8 Keeping Up to Date with Information Technologies......Page 53
1.9 Wrap-Up......Page 54
2 Introduction to Java Applications......Page 55
2.2 Your First Program in Java: Printing a Line of Text......Page 56
2.3 Modifying Your First Java Program......Page 60
2.4 Displaying Text with printf......Page 62
2.5 Another Application: Adding Integers......Page 63
2.6 Arithmetic......Page 67
2.7 Decision Making: Equality and Relational Operators......Page 68
2.8 Wrap-Up......Page 71
3 Introduction to Classes, Objects, Methods and Strings......Page 72
3.2 Declaring a Class with a Method and Instantiating an Object of a Class......Page 73
3.3 Declaring a Method with a Parameter......Page 77
3.4 Instance Variables, set Methods and get Methods......Page 80
3.5 Primitive Types vs. Reference Types......Page 85
3.6 Initializing Objects with Constructors......Page 86
3.7 Floating-Point Numbers and Type double......Page 89
3.8 Wrap-Up......Page 93
4 Control Statements: Part 1......Page 94
4.2 Control Structures......Page 95
4.3 if Single-Selection Statement......Page 97
4.4 if…else Double-Selection Statement......Page 98
4.5 while Repetition Statement......Page 101
4.6 Counter-Controlled Repetition......Page 103
4.7 Sentinel-Controlled Repetition......Page 106
4.8 Nested Control Statements......Page 111
4.9 Compound Assignment Operators......Page 114
4.10 Increment and Decrement Operators......Page 115
4.12 Wrap-Up......Page 118
5 Control Statements: Part 2......Page 119
5.2 Essentials of Counter-Controlled Repetition......Page 120
5.3 for Repetition Statement......Page 122
5.4 Examples Using the for Statement......Page 125
5.5 do…while Repetition Statement......Page 129
5.6 switch Multiple-Selection Statement......Page 131
5.7 break and continue Statements......Page 138
5.8 Logical Operators......Page 140
5.9 Wrap-Up......Page 146
6 Methods: A Deeper Look......Page 147
6.3 static Methods, static Fields and Class Math......Page 148
6.4 Declaring Methods with Multiple Parameters......Page 151
6.5 Notes on Declaring and Using Methods......Page 154
6.6 Argument Promotion and Casting......Page 155
6.7 Java API Packages......Page 156
6.8 Case Study: Random-Number Generation......Page 158
6.8.2 Random-Number Repeatability for Testing and Debugging......Page 162
6.9 Case Study: A Game of Chance; Introducing Enumerations......Page 163
6.10 Scope of Declarations......Page 167
6.11 Method Overloading......Page 170
6.12 Wrap-Up......Page 172
7 Arrays and ArrayLists......Page 173
7.2 Arrays......Page 174
7.3 Declaring and Creating Arrays......Page 176
7.4 Examples Using Arrays......Page 177
7.5 Case Study: Card Shuffling and Dealing Simulation......Page 186
7.6 Enhanced for Statement......Page 190
7.7 Passing Arrays to Methods......Page 192
7.8 Case Study: Class GradeBook Using an Array to Store Grades......Page 195
7.9 Multidimensional Arrays......Page 200
7.10 Case Study: Class GradeBook Using a Two-Dimensional Array......Page 204
7.11 Variable-Length Argument Lists......Page 210
7.12 Using Command-Line Arguments......Page 211
7.13 Class Arrays......Page 213
7.14 Introduction to Collections and Class ArrayList......Page 216
7.15 Wrap-Up......Page 219
8 Classes and Objects: A Deeper Look......Page 220
8.2 Time Class Case Study......Page 221
8.3 Controlling Access to Members......Page 225
8.4 Referring to the Current Object’s Members with the this Reference......Page 226
8.5 Time Class Case Study: Overloaded Constructors......Page 228
8.6 Default and No-Argument Constructors......Page 234
8.7 Notes on Set and Get Methods......Page 235
8.8 Composition......Page 236
8.9 Enumerations......Page 239
8.10 Garbage Collection and Method finalize......Page 242
8.11 static Class Members......Page 243
8.12 static Import......Page 246
8.13 final Instance Variables......Page 247
8.14 Time Class Case Study: Creating Packages......Page 248
8.15 Package Access......Page 254
8.16 Wrap-Up......Page 255
9 Object-Oriented Programming: Inheritance......Page 257
9.1 Introduction......Page 258
9.2 Superclasses and Subclasses......Page 259
9.4 Relationship between Superclasses and Subclasses......Page 261
9.4.1 Creating and Using a CommissionEmployee Class......Page 262
9.4.2 Creating and Using a BasePlusCommissionEmployee Class......Page 268
9.4.3 Creating a CommissionEmployee–BasePlusCommissionEmployee Inheritance Hierarchy......Page 273
9.4.4 CommissionEmployee–BasePlusCommissionEmployee Inheritance Hierarchy Using protected Instance Variables......Page 275
9.4.5 CommissionEmployee–BasePlusCommissionEmployee Inheritance Hierarchy Using private Instance Variables......Page 278
9.5 Constructors in Subclasses......Page 283
9.6 Software Engineering with Inheritance......Page 284
9.7 Class Object......Page 285
9.8 Wrap-Up......Page 286
10 Object-Oriented Programming: Polymorphism......Page 287
10.1 Introduction......Page 288
10.2 Polymorphism Examples......Page 290
10.3 Demonstrating Polymorphic Behavior......Page 291
10.4 Abstract Classes and Methods......Page 293
10.5 Case Study: Payroll System Using Polymorphism......Page 295
10.5.1 Abstract Superclass Employee......Page 296
10.5.2 Concrete Subclass SalariedEmployee......Page 299
10.5.3 Concrete Subclass HourlyEmployee......Page 301
10.5.4 Concrete Subclass CommissionEmployee......Page 303
10.5.5 Indirect Concrete Subclass BasePlusCommissionEmployee......Page 304
10.5.6 Polymorphic Processing, Operator instanceof and Downcasting......Page 306
10.5.7 Summary of the Allowed Assignments Between Superclass and Subclass Variables......Page 310
10.6 final Methods and Classes......Page 311
10.7 Case Study: Creating and Using Interfaces......Page 312
10.7.1 Developing a Payable Hierarchy......Page 313
10.7.2 Interface Payable......Page 314
10.7.3 Class Invoice......Page 315
10.7.4 Modifying Class Employee to Implement Interface Payable......Page 317
10.7.5 Modifying Class SalariedEmployee for Use in the Payable Hierarchy......Page 319
10.7.6 Using Interface Payable to Process Invoices and Employees Polymorphically......Page 321
10.7.7 Common Interfaces of the Java API......Page 322
10.8 Wrap-Up......Page 323
11 Exception Handling: A Deeper Look......Page 325
11.2 Example: Divide by Zero without Exception Handling......Page 326
11.3 Example: Handling ArithmeticExceptions and InputMismatchExceptions......Page 329
11.5 Java Exception Hierarchy......Page 334
11.6 finally Block......Page 337
11.7 Stack Unwinding and Obtaining Information from an Exception Object......Page 341
11.8 Chained Exceptions......Page 344
11.9 Declaring New Exception Types......Page 346
11.10 Preconditions and Postconditions......Page 347
11.11 Assertions......Page 348
11.13 (New in Java SE 7) try-with-Resources: Automatic Resource Deallocation......Page 349
11.14 Wrap-Up......Page 350
12 ATM Case Study, Part 1: Object-Oriented Design with the UML......Page 351
12.2 Examining the Requirements Document......Page 352
12.3 Identifying the Classes in a Requirements Document......Page 360
12.4 Identifying Class Attributes......Page 366
12.5 Identifying Objects’ States and Activities......Page 371
12.6 Identifying Class Operations......Page 375
12.7 Indicating Collaboration Among Objects......Page 381
12.8 Wrap-Up......Page 388
13 ATM Case Study Part 2: Implementing an Object-Oriented Design......Page 392
13.2 Starting to Program the Classes of the ATM System......Page 393
13.3 Incorporating Inheritance and Polymorphism into the ATM System......Page 398
13.4 ATM Case Study Implementation......Page 404
13.4.1 Class ATM......Page 405
13.4.2 Class Screen......Page 410
13.4.3 Class Keypad......Page 411
13.4.4 Class CashDispenser......Page 412
13.4.5 Class DepositSlot......Page 413
13.4.6 Class Account......Page 414
13.4.7 Class BankDatabase......Page 416
13.4.8 Class Transaction......Page 419
13.4.9 Class BalanceInquiry......Page 420
13.4.10 Class Withdrawal......Page 421
13.4.11 Class Deposit......Page 425
13.5 Wrap-Up......Page 428
14 GUI Components: Part 1......Page 431
14.1 Introduction......Page 432
14.2 Java’s New Nimbus Look-and-Feel......Page 433
14.3 Simple GUI-Based Input/Output with JOptionPane......Page 434
14.4 Overview of Swing Components......Page 437
14.5 Displaying Text and Images in a Window......Page 439
14.6 Text Fields and an Introduction to Event Handling with Nested Classes......Page 443
14.7 Common GUI Event Types and Listener Interfaces......Page 449
14.8 How Event Handling Works......Page 451
14.9 JButton......Page 453
14.10.1 JCheckBox......Page 456
14.10.2 JRadioButton......Page 459
14.11 JComboBox; Using an Anonymous Inner Class for Event Handling......Page 462
14.12 JList......Page 466
14.13 Multiple-Selection Lists......Page 468
14.14 Mouse Event Handling......Page 471
14.15 Adapter Classes......Page 476
14.16 JPanel Subclass for Drawing with the Mouse......Page 479
14.17 Key Event Handling......Page 483
14.18 Introduction to Layout Managers......Page 486
14.18.1 FlowLayout......Page 487
14.18.2 BorderLayout......Page 490
14.18.3 GridLayout......Page 493
14.19 Using Panels to Manage More Complex Layouts......Page 495
14.20 JTextArea......Page 497
14.21 Wrap-Up......Page 500
15 Graphics and Java 2D......Page 501
15.1 Introduction......Page 502
15.2 Graphics Contexts and Graphics Objects......Page 504
15.3 Color Control......Page 505
15.4 Manipulating Fonts......Page 512
15.5 Drawing Lines, Rectangles and Ovals......Page 517
15.6 Drawing Arcs......Page 521
15.7 Drawing Polygons and Polylines......Page 524
15.8 Java 2D API......Page 527
15.9 Wrap-Up......Page 534
16 Strings, Characters and Regular Expressions......Page 535
16.2 Fundamentals of Characters and Strings......Page 536
16.3.1 String Constructors......Page 537
16.3.2 String Methods length, charAt and getChars......Page 538
16.3.3 Comparing Strings......Page 539
16.3.4 Locating Characters and Substrings in Strings......Page 544
16.3.5 Extracting Substrings from Strings......Page 546
16.3.7 Miscellaneous String Methods......Page 547
16.3.8 String Method valueOf......Page 549
16.4 Class StringBuilder......Page 550
16.4.2 StringBuilder Methods length, capacity, setLength and ensureCapacity......Page 551
16.4.3 StringBuilder Methods charAt, setCharAt, getChars and reverse......Page 553
16.4.4 StringBuilder append Methods......Page 554
16.4.5 StringBuilder Insertion and Deletion Methods......Page 556
16.5 Class Character......Page 557
16.6 Tokenizing Strings......Page 562
16.7 Regular Expressions, Class Pattern and Class Matcher......Page 563
16.8 Wrap-Up......Page 571
17 Files, Streams and Object Serialization......Page 572
17.2 Files and Streams......Page 573
17.3 Class File......Page 575
17.4.1 Creating a Sequential-Access Text File......Page 579
17.4.2 Reading Data from a Sequential-Access Text File......Page 586
17.4.3 Case Study: A Credit-Inquiry Program......Page 589
17.4.4 Updating Sequential-Access Files......Page 594
17.5 Object Serialization......Page 595
17.5.1 Creating a Sequential-Access File Using Object Serialization......Page 596
17.5.2 Reading and Deserializing Data from a Sequential-Access File......Page 602
17.6.1 Interfaces and Classes for Byte-Based Input and Output......Page 604
17.6.2 Interfaces and Classes for Character-Based Input and Output......Page 606
17.7 Opening Files with JFileChooser......Page 607
17.8 Wrap-Up......Page 610
18 Generic Collections......Page 611
18.2 Collections Overview......Page 612
18.3 Type-Wrapper Classes for Primitive Types......Page 613
18.5 Interface Collection and Class Collections......Page 614
18.6 Lists......Page 615
18.6.1 ArrayList and Iterator......Page 616
18.6.2 LinkedList......Page 618
18.7 Collections Methods......Page 623
18.7.1 Method sort......Page 624
18.7.2 Method shuffle......Page 627
18.7.3 Methods reverse, fill, copy, max and min......Page 629
18.7.4 Method binarySearch......Page 631
18.7.5 Methods addAll, frequency and disjoint......Page 633
18.8 Stack Class of Package java.util......Page 635
18.9 Class PriorityQueue and Interface Queue......Page 637
18.10 Sets......Page 638
18.11 Maps......Page 641
18.12 Properties Class......Page 645
18.14 Unmodifiable Collections......Page 648
18.16 Wrap-Up......Page 649
19 Generic Classes and Methods......Page 651
19.2 Motivation for Generic Methods......Page 652
19.3 Generic Methods: Implementation and Compile-Time Translation......Page 655
19.4 Additional Compile-Time Translation Issues: Methods That Use a Type Parameter as the Return Type......Page 658
19.6 Generic Classes......Page 661
19.7 Raw Types......Page 669
19.8 Wildcards in Methods That Accept Type Parameters......Page 673
19.9 Generics and Inheritance: Notes......Page 677
19.10 Wrap-Up......Page 678
20 Applets and Java Web Start......Page 679
20.1 Introduction......Page 680
20.2 Sample Applets Provided with the JDK......Page 681
20.3 Simple Java Applet: Drawing a String......Page 685
20.3.1 Executing WelcomeApplet in the appletviewer......Page 687
20.4 Applet Life-Cycle Methods......Page 689
20.5 Initialization with Method init......Page 690
20.6 Sandbox Security Model......Page 692
20.7.1 Packaging the DrawTest Applet for Use with Java Web Start......Page 694
20.7.2 JNLP Document for the DrawTest Applet......Page 695
20.8 Wrap-Up......Page 699
21 Multimedia: Applets and Applications......Page 700
21.1 Introduction......Page 701
21.2 Loading, Displaying and Scaling Images......Page 702
21.3 Animating a Series of Images......Page 708
21.4 Image Maps......Page 715
21.5 Loading and Playing Audio Clips......Page 718
21.6 Playing Video and Other Media with Java Media Framework......Page 721
21.8 Web Resources......Page 725
22 GUI Components: Part 2......Page 727
22.2 JSlider......Page 728
22.3 Windows: Additional Notes......Page 732
22.4 Using Menus with Frames......Page 733
22.5 JPopupMenu......Page 741
22.6 Pluggable Look-and-Feel......Page 744
22.7 JDesktopPane and JInternalFrame......Page 749
22.8 JTabbedPane......Page 753
22.9 Layout Managers: BoxLayout and GridBagLayout......Page 755
22.10 Wrap-Up......Page 767
23 Multithreading......Page 768
23.1 Introduction......Page 769
23.2 Thread States: Life Cycle of a Thread......Page 771
23.3 Creating and Executing Threads with Executor Framework......Page 774
23.4 Thread Synchronization......Page 777
23.4.1 Unsynchronized Data Sharing......Page 778
23.4.2 Synchronized Data Sharing—Making Operations Atomic......Page 782
23.5 Producer/Consumer Relationship without Synchronization......Page 785
23.6 Producer/Consumer Relationship: ArrayBlockingQueue......Page 793
23.7 Producer/Consumer Relationship with Synchronization......Page 796
23.8 Producer/Consumer Relationship: Bounded Buffers......Page 802
23.9 Producer/Consumer Relationship: The Lock and Condition Interfaces......Page 809
23.10 Concurrent Collections Overview......Page 816
23.11 Multithreading with GUI......Page 818
23.11.1 Performing Computations in a Worker Thread......Page 819
23.11.2 Processing Intermediate Results with SwingWorker......Page 825
23.13 Java SE 7: Fork/Join Framework......Page 832
23.14 Wrap-Up......Page 833
24 Networking......Page 834
24.1 Introduction......Page 835
24.2 Manipulating URLs......Page 836
24.3 Reading a File on a Web Server......Page 841
24.4 Establishing a Simple Server Using Stream Sockets......Page 844
24.6 Client/Server Interaction with Stream Socket Connections......Page 846
24.7 Datagrams: Connectionless Client/Server Interaction......Page 858
24.8 Client/Server Tic-Tac-Toe Using a Multithreaded Server......Page 866
24.10 Wrap-Up......Page 881
25 Accessing Databases with JDBC......Page 882
25.1 Introduction......Page 883
25.2 Relational Databases......Page 884
25.3 Relational Database Overview: The books Database......Page 885
25.4 SQL......Page 888
25.4.1 Basic SELECT Query......Page 889
25.4.2 WHERE Clause......Page 890
25.4.3 ORDER BY Clause......Page 892
25.4.4 Merging Data from Multiple Tables: INNER JOIN......Page 893
25.4.5 INSERT Statement......Page 895
25.4.6 UPDATE Statement......Page 896
25.5 Instructions for Installing MySQL and MySQL Connector/J......Page 897
25.6 Instructions for Setting Up a MySQL User Account......Page 898
25.7 Creating Database books in MySQL......Page 899
25.8.1 Connecting to and Querying a Database......Page 900
25.8.2 Querying the books Database......Page 905
25.9 RowSet Interface......Page 918
25.10 Java DB/Apache Derby......Page 920
25.11 PreparedStatements......Page 922
25.12 Stored Procedures......Page 937
25.14 Wrap-Up......Page 938
25.15 Web Resources......Page 939
26 JavaServer™ FacesWeb Apps: Part 1......Page 940
26.1 Introduction......Page 941
26.2 HyperText Transfer Protocol (HTTP) Transactions......Page 942
26.3 Multitier Application Architecture......Page 945
26.4 Your First JSF Web App......Page 946
26.4.1 The Default index.xhtml Document: Introducing Facelets......Page 947
26.4.2 Examining the WebTimeBean Class......Page 949
26.4.3 Building the WebTime JSF Web App in NetBeans......Page 951
26.6 Common JSF Components......Page 955
26.7 Validation Using JSF Standard Validators......Page 959
26.8 Session Tracking......Page 966
26.8.1 Cookies......Page 967
26.8.2 Session Tracking with @SessionScoped Beans......Page 968
26.9 Wrap-Up......Page 974
27 JavaServer™ FacesWeb Apps: Part 2......Page 975
27.2 Accessing Databases in Web Apps......Page 976
27.2.1 Setting Up the Database......Page 978
27.2.2 @ManagedBean Class AddressBean......Page 981
27.2.3 index.xhtml Facelets Page......Page 985
27.2.4 addentry.xhtml Facelets Page......Page 987
27.3 Ajax......Page 989
27.4 Adding Ajax Functionality to the Validation App......Page 991
27.5 Wrap-Up......Page 994
28 Web Services......Page 995
28.1 Introduction......Page 996
28.4 Representational State Transfer (REST)......Page 998
28.6.1 Creating a Web Application Project and Adding a Web Service Class in NetBeans......Page 999
28.6.2 Defining the WelcomeSOAP Web Service in NetBeans......Page 1000
28.6.3 Publishing the WelcomeSOAP Web Service from NetBeans......Page 1003
28.6.4 Testing the WelcomeSOAP Web Service with GlassFish Application Server’s Tester Web Page......Page 1004
28.6.5 Describing a Web Service with the Web Service Description Language (WSDL)......Page 1005
28.6.6 Creating a Client to Consume the WelcomeSOAP Web Service......Page 1006
28.6.7 Consuming the WelcomeSOAP Web Service......Page 1008
28.7.1 Creating a REST-Based XML Web Service......Page 1011
28.7.2 Consuming a REST-Based XML Web Service......Page 1014
28.8.1 Creating a REST-Based JSON Web Service......Page 1016
28.8.2 Consuming a REST-Based JSON Web Service......Page 1018
28.9 Session Tracking in a SOAP Web Service......Page 1020
28.9.1 Creating a Blackjack Web Service......Page 1021
28.9.2 Consuming the Blackjack Web Service......Page 1024
28.10 Consuming a Database-Driven SOAP Web Service......Page 1035
28.10.1 Creating the Reservation Database......Page 1036
28.10.2 Creating a Web Application to Interact with the Reservation Service......Page 1039
28.11 Equation Generator: Returning User-Defined Types......Page 1042
28.11.1 Creating the EquationGeneratorXML Web Service......Page 1045
28.11.2 Consuming the EquationGeneratorXML Web Service......Page 1046
28.11.4 Consuming the EquationGeneratorJSON Web Service......Page 1050
28.12 Wrap-Up......Page 1053
A: Operator Precedence Chart......Page 1055
B: ASCII Character Set......Page 1057
C: Keywords and ReservedWords......Page 1058
D: Primitive Types......Page 1059
E.1 Introduction......Page 1060
E.2 Navigating the Java API......Page 1061
F: Using the Debugger......Page 1069
F.2 Breakpoints and the run, stop, cont and print Commands......Page 1070
F.3 The print and set Commands......Page 1074
F.4 Controlling Execution Using the step, step up and next Commands......Page 1076
F.5 The watch Command......Page 1079
F.6 The clear Command......Page 1082
F.7 Wrap-Up......Page 1084
G: Formatted Output......Page 1085
G.3 Formatting Output with printf......Page 1086
G.4 Printing Integers......Page 1087
G.5 Printing Floating-Point Numbers......Page 1088
G.6 Printing Strings and Characters......Page 1090
G.7 Printing Dates and Times......Page 1091
G.8 Other Conversion Characters......Page 1093
G.9 Printing with Field Widths and Precisions......Page 1095
G.10 Using Flags in the printf Format String......Page 1097
G.12 Printing Literals and Escape Sequences......Page 1101
G.13 Formatting Output with Class Formatter......Page 1102
G.14 Wrap-Up......Page 1103
H.2 GroupLayout Basics......Page 1104
H.3 Building a ColorChooser......Page 1105
H.4 GroupLayout Web Resources......Page 1115
I.2 Splash Screens......Page 1116
I.3 Desktop Class......Page 1118
I.4 Tray Icons......Page 1120
J.2 Additional Diagram Types......Page 1122
A......Page 1124
B......Page 1126
C......Page 1127
D......Page 1132
E......Page 1133
F......Page 1134
G......Page 1136
H......Page 1138
I......Page 1139
J......Page 1141
L......Page 1144
M......Page 1145
N......Page 1146
O......Page 1147
P......Page 1148
R......Page 1150
S......Page 1151
T......Page 1155
U......Page 1157
W......Page 1158
Z......Page 1159




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