وبلاگ بلیان

Get Programming with Java (MEAP - Manning Early Access Program)

معرفی کتاب «Get Programming with Java (MEAP - Manning Early Access Program)» نوشتهٔ Peggy Fisher، منتشرشده توسط نشر Manning Publications Co. LLC در سال 2019. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «Get Programming with Java (MEAP - Manning Early Access Program)» در دستهٔ بدون دسته‌بندی قرار دارد.

Get Programming with Java teaches you to write programs in the Java language, starting from the most basic building blocks. In her relatable and personable style, author Peggy Fisher begins by helping you set up a Java programming environment on your computer. Once you’re up and running, you’ll start working with the foundations of Java and object-oriented programming, including classes and objects. Always practical and clear, this carefully-designed tutorial swaps the usual heavy-handed theory for concrete examples and easy-to-follow scenarios. And you’ll use everything you learn immediately! Quick, concise lessons and “try this” exercises give you practical, hands-on experience with inheritance, file processing, collections, design patterns, and other vital Java principles. At the end of each set of lessons you’ll complete a capstone project to lock in what you’ve learned. This fun guide with a course-like feel will have you programming in Java quickly, confidently, and proficiently. MEAP Version 4 Get Programming with Java MEAP V04 1 Copyright 2 Welcome 3 Brief contents 4 Unit 0: Getting Started with Java 6 Lesson 1: Get Started 7 1.1 What is an Integrated Development Environment 8 1.2 Install the Java Development Kit (JDK) 9 1.3 How to Install NetBeans 10 1.4 NetBeans Environment Setup 13 1.5 Write a Java Program Using NetBeans 14 1.6 Summary 18 Unit 1: Classes and Objects 20 Lesson 2: Creating Classes 21 2.1 Defining a Class 22 2.2 Add Class Behaviors using Methods 24 2.3 Create objects based on the class definition 25 2.4 Summary 27 Lesson 3: Visibility Modifiers 29 3.1 Packages 29 3.2 Visibility Modifiers Explained 30 3.3 Visibility Modifiers in Action 32 3.4 Summary 33 Lesson 4: Adding Methods 36 4.1 Method Signatures 36 4.1.1 Visibility Modifier 37 4.1.2 Return Type 38 4.1.3 Method Naming Conventions 38 4.1.4 Parameter List 38 4.1.5 Method Body 39 4.2 Adding Getter and Setter Methods 40 4.3 Adding More Methods 45 4.4 Summary 47 Lesson 5: Adding Loops 51 5.1 Adding a Count Controlled Loop 52 5.2 The While Loop 54 5.3 The Do...While Loop 56 5.4 The for-each Loop 57 5.5 Summary 59 Lesson 6: Arrays and ArrayLists 63 6.1 Creating arrays 64 6.2 Access and modify elements in an array 66 6.3 Manipulating arrays using the Arrays class 70 6.4 Creating ArrayLists 71 6.5 Accessing and modifying elements in an ArrayList 73 6.6 Summary 76 Lesson 7: Capstone 1 81 7.1 Flowchart the Solution 82 7.2 Create an Employee Class 83 7.3 Add getter and setter methods to the Employee class 83 7.4 Add methods to the Employee class 84 7.5 Wrap It Up 85 7.6 Summary 89 Unit 2: Application Programming Interface (API) 92 Lesson 8: Standard Java API 93 8.1 How to read the API documentation 94 8.2 Scanner class 98 8.3 Wrapper classes 101 8.3.1 Wrapper classes for primitive data types 101 8.3.2 Wrapper class methods 103 8.4 Summary 105 Lesson 9: String and StringBuilder Classes 109 9.1 Working with strings 109 9.2 Converting between numbers and strings 111 9.3 String methods 113 9.4 StringBuilder class and methods 115 9.5 Summary 118 Lesson 10: Static Methods and Variables 121 10.1 Static Methods 122 10.2 Static Variables 125 10.3 Final Static Variables 127 10.4 Summary 129 Lesson 11: Using Interfaces 132 11.1 What is an Interface 133 11.2 Defining a new Interface 135 11.3 Implementing an Interface 136 11.4 Summary 139 Lesson 12: Capstone 2 143 12.1 Create the Author class 143 12.2 Create the Book class 145 12.3 Create the ACMEPublishing class 147 12.4 Summary 151 Unit 3: Programming with Objects 155 Lesson 13: Overloading Methods 156 13.1 Three ways to overload a method 157 13.2 Quick Check 13-1: 159 13.3 Write a class with overloaded methods 159 13.4 Call the overloaded method 162 13.5 Overloading Constructors 164 13.6 Summary 167 Lesson 14: Overriding Methods 173 14.1 Write a Class that Extends Another Class 174 14.2 Write an overridden method in a subclass 175 14.3 Using the keyword super 178 14.4 Using the keyword instanceof 180 14.5 Summary 182 Lesson 15: Polymorphism Explained 189 15.1 Understand the Definition of Polymorphism 190 15.2 Benefits of Using Polymorphism 191 15.3 The Difference Between Compile Time and Runtime Polymorphism 192 15.4 Summary 194 Lesson 16: Polymorphism In Action 198 16.1 Setup Classes Using Inheritance to Demonstrate Polymorphism 199 16.2 Define Objects Using Polymorphism 200 16.3 What Does it Mean to Upcast and Downcast objects 210 16.4 How the JVM Chooses the Correct Method to Execute 213 16.5 Summary 214 Lesson 17: Comparing Objects 219 17.1 Comparing Objects vs. Primitive Data Types 220 17.2 Compare Objects for Equality 223 17.3 Use the Comparable interface to compare objects 226 17.4 Summary 229 Lesson 18: Capstone 233 18.1 Creating Classes 234 18.1.1 The Project class 235 18.1.2 The Address Class 238 18.1.3 The Worker class 239 18.1.4 The Carpenter Class 240 18.1.5 The Electrician Class 241 18.1.6 The Plumber Class 242 18.2 Main Application 242 18.3 Summary 246 Unit 4: More Programming with Objects 250 Lesson 19: Pass by Value vs. Pass by Reference 251 19.1 Passing Primitive Types 252 19.2 Passing Reference Types 257 19.3 Summary 260 Lesson 20: Garbage Collection 265 20.1 Java Heap 265 20.2 Garbage Collection 266 20.2.1 20.2.1 Nullifying the reference variable 267 20.2.2 Reassigning the reference variable 268 20.2.3 Creating an object inside a method 270 20.2.4 Island of Isolation 271 20.3 Summary 274 Lesson 21: Java Collections: List 277 21.1 Collections in Java 277 21.2 Understand when to use the List collection 279 21.3 ArrayList, LinkedList and Vector 281 21.4 Common Collection Interface Methods 283 21.5 Summary 287 Lesson 22: Java Collections: Set 291 22.1 Sets in Java 291 22.2 Understand when to use the Set collection 292 22.3 HashSet, LinkedHashSet, and TreeSet 294 22.3.1 HashSet 295 22.3.2 LinkedHashSet 296 22.3.3 TreeSet 297 22.4 Common Collection Interface Methods 300 22.5 Summary 303
دانلود کتاب Get Programming with Java (MEAP - Manning Early Access Program)