官术网_书友最值得收藏!

About the Book

You already know you want to learn Java, and a smarter way to learn Java 12 is to learn by doing. The Java Workshop focuses on building up your practical skills so that you can develop high-performance Java applications that work flawlessly within the JVM across web, mobile and desktop. You'll learn from real examples that lead to real results.

Throughout The Java Workshop, you'll take an engaging step-by-step approach to understanding Java. You won't have to sit through any unnecessary theory. If you're short on time you can jump into a single exercise each day or spend an entire weekend learning about Reactive programming and Unit testing. It's your choice. Learning on your terms, you'll build up and reinforce key skills in a way that feels rewarding.

Every physical copy of The Java Workshop unlocks access to the interactive edition. With videos detailing all exercises and activities, you'll always have a guided solution. You can also benchmark yourself against assessments, track progress, and receive free content updates. You'll even earn a secure credential that you can share and verify online upon completion. It's a premium learning experience that's included with your printed copy. To redeem, follow the instructions located at the start of your Java book.

Fast-paced and direct, The Java Workshop is the ideal companion for Java beginners. You'll build and iterate on your code like a software developer, learning along the way. This process means that you'll find that your new skills stick, embedded as best practice. A solid foundation for the years ahead.

About the Chapters

Chapter 1, Getting Started, covers the basics of writing and testing programs, a first step towards building all the code that you will find in this book.

Chapter 2, Learning the Basics, covers the basic syntax of the Java language, especially ways to control the flow of your applications.

Chapter 3, Object-Oriented Programming, provides an overview of OOP and details the aspects that make Java a popular language.

Chapter 4, Collections, Lists, and Java's Built-In APIs, covers the popular Java collections framework, which is used to store, sort, and filter data.

Chapter 5, Exceptions, provides recommendations on how to deal with exceptions on a more conceptual level, providing a list of best practices that any professional programmer will follow.

Chapter 6, Libraries, Packages, and Modules, introduces you to various ways to package and bundle Java code, along with tools to help you build Java projects.

Chapter 7, Databases and JDBC, shows how to use JDBC to access relational databases from your Java applications.

Chapter 8, Sockets, Files, and Streams, aids you in working with external data storage systems.

Chapter 9, Working with HTTP, explains how to create programs that connect to a specific web server and downloads data.

Chapter 10, Encryption, explores how applying encryption to your software is vital to safeguard yours, or your customers, integrity, data, and business.

Chapter 11, Processes, briefly discusses how processes function and are dealt with in Java.

Chapter 12, Regular Expressions, decrypts what regular expressions mean and looks at how this comes in handy in Java.

Chapter 13, Functional Programming with Lambda Expressions, discusses how Java doubles up as a functional programming language, and how lambda expressions are used to perform pattern matching in Java.

Chapter 14, Recursion, looks at a couple of problems that are solved using the recursion technique.

Chapter 15, Processing Data with Streams, explains how you can use streams to write more expressive programs with fewer lines of code, and also how you can easily chain multiple operations on large lists.

Chapter 16, Predicates and Other Functional Interfaces, explores some of the valid use cases of functional interfaces.

Chapter 17, Reactive Programming with Java Flow, talks about the Java Flow API and the advantages of the Reactive Streams specification.

Chapter 18, Unit Testing, delves into testing with JUnit, one of the primary testing frameworks for Java.

Conventions

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "You can nest if statements within any block of code, including the block of code that follows an if statement.".

Words that you see on the screen, for example, in menus or dialog boxes, also appear in the text like this: "Click on Create New Project."

A block of code is set as follows:

if (i == 5) {

System.out.println("i is 5");

}

i = 0;

New terms and important words are shown like this: "This kind of data is what we call a variable type."

Large code snippets are truncated and the corresponding names of the code files on GitHub are placed at the top of the truncated code. The permalinks to the entire code are placed below the code snippet. It should look as follows:

Exercise02.java

6  if (distanceToHome > maxDistance) {

7  System.out.println("Distance from the store to your home is");

8  System.out.println(" more than " + maxDistance + "km away.");

9  System.out.println("That is too far for free delivery.");

Before You Begin

While all the code present in the course runs on all Java compilers, we have used IntelliJ IDEA on our systems. All the instructions in the exercises and the activities are tailored to work on IntelliJ. To install IntelliJ on your system, visit https://packt.live/32GjsHb.

Installing the Code Bundle

Download the code files from GitHub at https://packt.live/2Jgzz6D and place them in a new folder called C:\Code. Refer to these code files for the complete code bundle.

主站蜘蛛池模板: 连城县| 晴隆县| 鱼台县| 盖州市| 舞阳县| 岳池县| 鲜城| 长垣县| 台东县| 巨野县| 远安县| 金溪县| 建瓯市| 郯城县| 舒城县| 杭州市| 兴山县| 扶余县| 铜川市| 长岛县| 基隆市| 新建县| 绥阳县| 睢宁县| 剑川县| 辛集市| 高清| 温泉县| 宣汉县| 称多县| 会宁县| 惠来县| 德阳市| 阿鲁科尔沁旗| 利辛县| 本溪市| 顺昌县| 云林县| 邳州市| 阳新县| 康平县|