舉報

會員
Java 9 with JShell
最新章節(jié):
Index
Thisbookcanbeunderstoodbyanyonewhoisagraduateofcomputerscienceorsomeonewhohasjustbegunworkingasasoftwareengineer.Basically,anunderstandingofanobject-orientedprogramminglanguagelikePython,C++orindeed,anearlierJavaversionissufficient.Itwouldbehelpfultohaveparticipatedinthefullproductcycleofasoftwareengineeringproject.
目錄(143章)
倒序
- 封面
- 版權(quán)信息
- Credits
- About the Author
- Acknowledgement
- About the Reviewer
- www.PacktPub.com
- Customer Feedback
- Preface
- Chapter 1. JShell – A Read-Evaluate-Print-Loop for Java 9
- Getting ready for our journey toward OOP with Java 9
- Installing the required software on Windows macOS or Linux
- Running Java 9 code in JShell
- Working with variables methods and sources
- Editing the source code in our favorite external code editor
- Loading source code
- Test your knowledge
- Summary
- Chapter 2. Real-World Objects to UML Diagrams and Java 9 via JShell
- Identifying objects from applications requirements
- Capturing real-world objects
- Generating classes to create objects
- Recognizing variables and constants
- Identifying actions to create methods
- Organizing classes with UML diagrams
- Using feedback from domain experts
- Test your knowledge
- Summary
- Chapter 3. Classes and Instances
- Understanding classes and instances in Java 9
- Working with object initialization and its customization
- Introducing garbage collection
- Declaring classes
- Customizing constructors and initialization
- Understanding how garbage collection works
- Creating instances of classes and understanding their scope
- Exercises
- Test your knowledge
- Summary
- Chapter 4. Encapsulation of Data
- Understanding members composing a class
- Declaring immutable fields
- Working with setters and getters
- Combining setters getters and fields
- Transforming values with setters and getters
- Using static fields to provide class-level values
- Using static methods to provide overridable class-level values
- Test your knowledge
- Summary
- Chapter 5. Mutable and Immutable Classes
- Creating mutable classes in Java 9
- Working with mutable objects in JShell
- Building immutable classes in Java 9
- Working with immutable objects in JShell
- Understanding the differences between mutating and non-mutating objects
- Learning the advantages of non-mutating objects when writing concurrent code
- Working with instances of the immutable String class
- Creating the immutable version of an existing mutable class
- Test your knowledge
- Summary
- Chapter 6. Inheritance Abstraction Extension and Specialization
- Creating class hierarchies to abstract and specialize behavior
- Understanding inheritance
- Creating an abstract base class
- Declaring classes that inherit from another class
- Overriding and overloading methods
- Test your knowledge
- Summary
- Chapter 7. Members Inheritance and Polymorphism
- Creating concrete classes that inherit from abstract superclasses
- Understanding polymorphism
- Controlling overridability of members in subclasses
- Controlling subclassing of classes
- Creating methods that work with instances of different subclasses
- Test your knowledge
- Summary
- Chapter 8. Contract Programming with Interfaces
- Understanding how interfaces work in combination with classes
- Declaring interfaces
- Declaring classes that implement interfaces
- Taking advantage of the multiple inheritance of interfaces
- Combining class inheritance and interfaces
- Test your knowledge
- Summary
- Chapter 9. Advanced Contract Programming with Interfaces
- Working with methods receiving interfaces as arguments
- Downcasting with interfaces and classes
- Treating instances of an interface type as a different subclass
- Taking advantage of default methods in interfaces in Java 9
- Test your knowledge
- Summary
- Chapter 10. Maximization of Code Reuse with Generics
- Understanding parametric polymorphism Java 9 generics and generic code
- Declaring an interface to be used as a type constraint
- Declaring a class that conforms to multiple interfaces
- Declaring subclasses that inherit the implementation of interfaces
- Creating exception classes
- Declaring a class that works with a constrained generic type
- Using a generic class for multiple compatible types
- Test your knowledge
- Summary
- Chapter 11. Advanced Generics
- Creating a new interface to be used as a constraint for a second type parameter
- Declaring two classes that implement an interface to work with two type parameters
- Declaring a class that works with two constrained generic types
- Creating instances of a generic class with two generic type parameters
- Test your knowledge
- Summary
- Chapter 12. Object-Oriented Functional Programming and Lambda Expressions
- Understanding functions and methods as first-class citizens
- Working with functional interfaces and lambda expressions
- Creating a functional version of array filtering
- Creating a data repository with generics and interfaces
- Filtering collections with complex conditions
- Using a map operation to transform values
- Combining a map operation with reduce
- Chaining many operations with map and reduce
- Working with different collectors
- Test your knowledge
- Summary
- Chapter 13. Modularity in Java 9
- Refactoring existing code to take advantage of object-oriented programming
- Organizing object-oriented code with the new modularity in Java 9
- Creating modular source code
- Compiling multiple modules with the Java 9 compiler
- Run modularized code with Java 9
- Test your knowledge
- Summary
- Appendix A. Exercise Answers
- Chapter 1 JShell – A Read-Evaluate-Print-Loop for Java 9
- Chapter 2 Real-World Objects to UML Diagrams and Java 9 via JShell
- Chapter 3 Classes and Instances
- Chapter 4 Encapsulation of Data
- Chapter 5 Mutable and Immutable Classes
- Chapter 6 Inheritance Abstraction Extension and Specialization
- Chapter 7 Members Inheritance and Polymorphism
- Chapter 8 Contract Programming with Interfaces
- Chapter 9 Advanced Contract Programming with Interfaces
- Chapter 10 Maximization of Code Reuse with Generics
- Chapter 11 Advanced Generics
- Chapter 12 Object-Oriented Functional Programming and Lambda Expressions
- Chapter 13 Modularity in Java 9
- Index 更新時間:2021-07-09 18:47:11
推薦閱讀
- Practical Data Analysis Cookbook
- C++面向?qū)ο蟪绦蛟O(shè)計(第三版)
- 零基礎(chǔ)搭建量化投資系統(tǒng):以Python為工具
- Microsoft Application Virtualization Cookbook
- 控糖控脂健康餐
- 劍指JVM:虛擬機實踐與性能調(diào)優(yōu)
- Developing Mobile Web ArcGIS Applications
- Developing Middleware in Java EE 8
- Hands-On Automation Testing with Java for Beginners
- 小學(xué)生C++創(chuàng)意編程(視頻教學(xué)版)
- ScratchJr趣味編程動手玩:讓孩子用編程講故事
- 計算語言學(xué)導(dǎo)論
- Python應(yīng)用與實戰(zhàn)
- 用Python動手學(xué)統(tǒng)計學(xué)
- 精益軟件開發(fā)管理之道
- 數(shù)據(jù)結(jié)構(gòu)與算法詳解
- Building Microservices with Go
- Scratch超人漫游記:創(chuàng)意程序設(shè)計:STEAM創(chuàng)新教育指南
- iOS應(yīng)用逆向工程:分析與實戰(zhàn)
- 3D Printing Designs:Fun and Functional Projects
- 構(gòu)建跨平臺APP:響應(yīng)式UI設(shè)計入門
- Full Stack Development with JHipster
- 我的Python世界
- Python+Excel職場辦公數(shù)據(jù)分析
- Vagrant開發(fā)運維實戰(zhàn)
- Web技術(shù)應(yīng)用基礎(chǔ)
- Python機器學(xué)習(xí)原理與算法實現(xiàn)
- C# 8.0本質(zhì)論
- Redux Quick Start Guide
- UI設(shè)計基礎(chǔ)培訓(xùn)教程(全彩版·第2版)