Rogers Cadenhead - Sams Teach Yourself Java in 21 Days (Covers Java 11/12), 8th Edition (2020)

GuDron

dumpz.ws
Admin
Регистрация
28 Янв 2020
Сообщения
7,771
Реакции
1,451
Credits
25,339
Sams Teach Yourself Java in 21 Days (Covers Java 11/12), 8th Edition
Автор: Rogers Cadenhead (2020)
фронт.jpg

Introduction​

Some revolutions catch the world by surprise. Slack, Linux, the Popeye’s chicken sandwich, and The Masked Singer all rose to prominence unexpectedly.

The remarkable success of the Java programming language, on the other hand, caught nobody by surprise. Java has been a source of great expectations since its launch 25 years ago. When Java was introduced in web browsers, a torrent of publicity welcomed the arrival of the new language.

Sun Microsystems cofounder Bill Joy proclaimed, “This represents the end result of nearly 15 years of trying to come up with a better programming language and environment for building simpler and more reliable software.”

Sun, which created Java in 1991 and first released it to the public four years later, was acquired by Oracle in 2010. Oracle, which has been committed to Java development since its earliest years, has continued to support the language and produce new versions. There’s now an open source implementation as well.

Java has lived up to a considerable amount of its early hype. The language is as strong a part of software development as the beverage of the same name. One kind of Java keeps programmers up nights. The other kind enables programmers to rest easier after they have developed their software.

Java was originally offered as a technology for enhancing websites with programs that run in browsers. Today, it’s more likely to be found on servers, driving dynamic cloud applications backed by relational databases on some of the Web’s largest sites and on millions of Android cell phones and tablets running popular apps such as Subway Surfers and Instagram.

Each new release of Java strengthens its capabilities as a general-purpose programming language for a wide range of environments. Java is being put to use in desktop applications, Internet servers, mobile devices, and many other environments.

Now in its 13th release—Java 12—the Java language has matured into a full-featured competitor to other general-purpose development languages, such as C++, Python, and JavaScript.

You might be familiar with Java programming tools such as Eclipse, NetBeans, and IntelliJ IDEA. These programs make it possible to develop functional Java programs, and you also can use Oracle’s Java Development Kit and the open source OpenJDK. Those two kits, which are available for free on the Web with different licensing terms, offer command-line tools for writing, compiling, and testing Java programs. NetBeans, another free tool offered by Apache, is an integrated development environment for the creation of Java programs. It can be downloaded from Для просмотра ссылки Войди или Зарегистрируйся.

This book introduces you to all aspects of Java software development, using the most current version of the language and the best available techniques in Java Standard Edition, the most widely used version of the language. Programs are prepared and tested using Apache NetBeans, so you can quickly demonstrate the skills you master in each lesson.

Reading this book will help you understand why Java has become the most widely employed programming language on the planet.

How This Book Is Organized​

Sams Teach Yourself Java in 21 Days teaches you about the Java language and how to use it to create applications for any computing environment. By the time you have finished the book, you’ll have well-rounded knowledge of Java and the Java class libraries. Using your new skills, you will be able to develop your own programs for tasks such as web services, database connectivity, XML processing, and network programming.

You’ll learn by doing in this book, creating several programs in each lesson that demonstrate the topics being introduced. The source code for all these programs is available on the book’s official website, at Для просмотра ссылки Войди или Зарегистрируйся, along with other supplemental material such as answers to reader questions.

This book covers the Java language and its class libraries in 21 lessons, organized into three parts, each covering a broad area of developing Java programs.

In the first part, you learn about the Java language itself:

  • Lesson 1 covers the basics—what Java is, why you should learn the language, and how to create software using a powerful style of development called object-oriented programming. In this lesson, you’ll create your first Java application.
  • In Lesson 2, you’ll dive into the fundamental Java building blocks—data types, variables, and expressions.
  • Lesson 3 goes into detail about how to deal with objects in Java—how to create them, use their variables, call their methods, and compare them.
  • In Lesson 4, you’ll give Java programs some brainpower using conditionals, and you’ll work with arrays and loops.
  • Lesson 5 fully explores creating classes—the basic building blocks of any Java program.
  • In Lesson 6, you’ll discover more about interfaces and packages, which are useful for grouping classes and organizing a class hierarchy.
  • Lesson 7 covers three powerful features of Java: exceptions, the ability to deal with errors; threads, the capability to run different parts of a program simultaneously; and assertions, a technique for making programs more reliable.
Part 2 is dedicated to the most useful classes offered by Oracle for use in your own Java programs:

  • Lesson 8 introduces data structures that you can use as an alternative to strings and arrays—array lists, stacks, maps, hash maps, and bit sets. It also describes a special for loop that makes them easier to use.
  • Lesson 9 begins a five-lesson exploration of visual programming. You’ll learn how to create a graphical user interface using Swing classes for interfaces, graphics, and user input.
  • Lesson 10 covers more than a dozen interface components you can use in a Java program, including buttons, text fields, sliders, scrolling text areas, and icons.
  • Lesson 11 explains how to make a user interface look marvelous by using layout managers, a set of classes that determines how components on an interface are arranged.
  • Lesson 12 concludes the coverage of Swing with event-handling classes, which enable a program to respond to mouse clicks and other user interactions.
  • In Lesson 13, you’ll learn about drawing shapes and characters on user interface components.
  • Lesson 14 finishes the exploration of Swing with the introduction of a helpful threaded class and a sophisticated layout manager.
Part 3 moves into advanced topics:

  • Lesson 15 provides a complete introduction to lambda expressions, also called closures. Lambda expressions make it possible to use a new type of Java coding, called functional programming, for the first time. Inner classes are explored in greater depth as they relate to closures.
  • Lesson 16 covers input and output using streams, a set of classes that enables file access, network access, and other sophisticated data handling.
  • In Lesson 17, you’ll extend your knowledge of streams to write programs that communicate on the Internet using HTTP, including socket programming, buffers, channels, and URL handling.
  • Lesson 18 shows you how to connect to relational databases using Java Database Connectivity (JDBC). You’ll learn how to exploit the capabilities of Derby, the open source database that’s included with Java.
  • Lesson 19 covers how to read and write RSS documents using the XML Object Model (XOM), an open source Java class library. RSS feeds, one of the most popular XML dialects, enable millions of people to follow site updates and other new web content.
  • Lesson 20 explores how to write web services clients with another open source library, Apache XML-RPC.
  • Lesson 21 brings it all together, showing how to create a puzzle game called Banko. You’ll take a deep dive into the source code of a complete Java application as a trial run on the process you’ll undertake when you close the book and create your own full-fledged programs.