Practical Java Programming for IoT, AI, and Blockchain
eBook - ePub

Practical Java Programming for IoT, AI, and Blockchain

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Practical Java Programming for IoT, AI, and Blockchain

About this book

Learn practical uses for some of the hottest tech applications trending among technology professionals

We are living in an era of digital revolution. On the horizon, many emerging digital technologies are being developed at a breathtaking speed. Whether we like it or not, whether we are ready or not, digital technologies are going to penetrate more and more, deeper and deeper, into every aspect of our lives. This is going to fundamentally change how we live, how we work, and how we socialize.

Java, as a modern high-level programming language, is an excellent tool for helping us to learn these digital technologies, as well as to develop digital applications, such as IoT, AI, Cybersecurity, Blockchain and more. Practical Java Programming uses Java as a tool to help you learn these new digital technologies and to be better prepared for the future changes.

  • Gives you a brief overview for getting started with Java Programming
  • Dives into how you can apply your new knowledge to some of the biggest trending applications today
  • Helps you understand how to program Java to interact with operating systems, networking, and mobile applications
  • Shows you how Java can be used in trending tech applications such as IoT (Internet of Things), AI (Artificial Intelligence), Cybersecurity, and Blockchain

Get ready to find out firsthand how Java can be used for connected home devices, healthcare, the cloud, and all the hottest tech applications.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Practical Java Programming for IoT, AI, and Blockchain by Perry Xiao in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming. We have over one million books available in our catalogue for you to explore.

Information

Publisher
Wiley
Year
2019
Print ISBN
9781119560012
eBook ISBN
9781119560036

Part I

In This Part:

  • Chapter 1: Introduction to Java
  • Chapter 2: Getting Started with Java Programming

CHAPTER 1
Introduction to Java

“Experience is simply the name we give our mistakes.”
—Oscar Wilde
  • 1.1 What Is Java?
  • 1.2 Versions of Java
  • 1.3 Java Architecture
  • 1.4 Editions of Java
  • 1.5 The Java Spring Framework
  • 1.6 Advantages and Disadvantages of Java
  • 1.7 Java Certificates
  • 1.8 Summary
  • 1.9 Chapter Review Questions

1.1 What Is Java?

Java is a high-level, object-oriented, general-purpose programming language that was originally developed by James Gosling, a Canadian computer scientist, at what was then Sun Microsystems, in the U.S. state of California in 1991. Sun Microsystems was later acquired by Oracle Corporation, also in California, in 2010. Java was a byproduct of Sun's “Green” project, and it was originally designed as a platform-independent language for programming household electronic appliances. However, Java was too advanced for such applications. Gosling designed Java syntax based on the C and C++ languages, but with fewer low-level facilities. Java was named after the popular Indonesian Java coffee. Java first appeared in 1995, through the HotJava and Netscape web browsers, as a plug-in called Java Applets, which could add dynamic content and interactions to static, pale web pages. Java soon became popular with all the major web browsers incorporating the ability to run Java applets. You've probably seen the famous Java logo, a cup of hot coffee, along with the Java mascot, Duke. Today, after decades of effect, Java has been developed into a fully functional, multipurpose, and powerful language suitable for both individual and enterprise users. Java is different from JavaScript, which is a script language that runs only within a web browser.
The Java language has five main principles; it was designed to be all of the following:
  • Simple, object-oriented, and familiar
  • Robust and secure
  • Architecture-neutral and portable
  • High-performance
  • Interpreted, threaded, and dynamic
The main advantage of Java is its platform independence; that is, programs written in the language can be “write once, run anywhere” (WORA). This independence is achieved through the concept of the Java Virtual Machine (JVM), illustrated in Figure 1.1. With conventional programming languages like C/C++, to run on different operating systems such as Windows, Mac, and Linux, the C/C++ source file needs to be compiled separately on each operating system. Because each executable file runs in its native operating system, the executable files compiled in one operating system cannot run in another operating system. Java works differently. The Java source code (a .java file) is compiled into Java bytecode (a .class file). The bytecode files are not executable files and cannot run directly in the operating system. Instead, they run in the JVM, which handles the differences between operating systems and presents an identical environment for Java programs to run in. JVM is a novel idea that makes Java platform-independent. The drawback of the JVM is that Java pr...

Table of contents

  1. Cover
  2. Table of Contents
  3. Preface
  4. Introduction
  5. Part I
  6. Part II
  7. Part III
  8. APPENDIX A: Java Documentation and Archiving Tools and Online Resources
  9. APPENDIX B: Apache Maven Tutorial
  10. APPENDIX C: Git and GitHub Tutorial
  11. Index
  12. End User License Agreement