Learning Modern Java: A Crash Course Using Java 8
By Marty Hall
Publisher: Pearson
Final Release Date: September 2015
Run time: 17 hours 45 minutes

17+ Hours of Video Instruction

Java is the world’s most popular and widely applied programming language, but it is large, complex, and sometimes difficult to get started with. These LiveLessons supply a practical, hands-on introduction to programming with Java 8, the latest version of the language.

The course provides thorough coverage of the foundational Java topics: basic syntax, object-oriented programming, handling exceptions, core data structures, and generic types. It also gives fast-moving coverage of some of the most important libraries: concurrent programming with Java threads, parallel programming with fork/join, network programming, file I/O, and serialization. Finally, it gives detailed explanation of the syntax and usage of lambda expressions and streams, the most important new features in Java 8.

In each section, it gives details on the most important topics, surveys more advanced or lesser-used topics, stresses best practices, and provides plenty of working examples.

If you are new to Java and want to quickly learn the full range of Java programming, but in the context of the latest version (Java 8), continue on: you are in the right place. If, however, you are already comfortable with previous Java versions and want to learn only the new Java 8 features, see Java 8 Lambda Expressions and Streams instead.

Description

In these LiveLessons, expert Java developer, instructor, and author Marty Hall gives a crash course on Java programming. This fast-moving video series is aimed at developers who have used other languages, but who have little or no Java experience.

The first section looks at installing Java and Eclipse, making projects, and understanding loops, conditionals, and other basic Java syntax.

The second section covers object-oriented programming using the Java 8 style. Topics include classes, methods, constructors, interfaces, abstract classes, enums, and lots of guidance on style and best OOP practices.

The third section looks at exception handling, lists and maps, generic types, printf, inner classes, and unit testing with JUnit.

The fourth section looks at asynchronous event handling, concurrent programming with Java threads, and parallel programming using Java’s fork/join framework.

The fifth section looks at the syntax and usage of lambda expressions and streams, with particular emphasis on best practices and the use of parallel streams.

The final section looks at file and network I/O: Java 8 stream-based file reading, network clients, network servers, and serialization.

Please visit http://courses.coreservlets.com/Course-​Materials/java.html for the LiveLessons Web site. This site contains complete source code for all examples in the video, as well as exercises and exercise solutions for each topic.

Finally, you can contact the author directly at hall@coreservlets.com with questions or suggestions, or to inquire about customized training courses on Java EE and JavaScript topics to be held onsite at your organization.

The source code repository for this LiveLesson can be downloaded from http://courses.coreservlets.com/Course-​Materials/java.html.

About the Instructor

Marty Hall is president of coreservlets.com, a training and consulting company focusing on server-side Java technology, Android development, and Rich Internet Apps with Ajax. In addition to long Java development and consulting experience, Marty has an extensive background in teaching and training, having given training courses on Java 8, JSF 2, PrimeFaces, Android, Ajax/jQuery, and other Java EE topics in dozens of US venues and nine other countries.
A popular and entertaining speaker, Marty has also spoken at conferences and user groups around the world, including Comdex, the Web 2.0 Expo, and five times at JavaOne. Marty is also adjunct faculty in the Johns Hopkins University part-time graduate program in Computer Science, where he directs the Java and Web-related concentration areas.
Marty Hall is also the lead author of six popular Java EE books from Pearson, including Core Servlets and JSP, and is the co-author of the upcoming JSF 2.3 edition of Core JSF.
You can see more details on Marty's bio page:
http://courses.coreservlets.com/about-​instructor.html.

Skill Level

  • Beginner to intermediate

What You Will Learn

  • Installing Java
  • Installing and using the Eclipse development environment
  • Loops and conditionals
  • Strings, arrays, and other basic Java syntax
  • Classes
  • Instance variables (data members, fields)
  • Methods (member functions)
  • Overloading
  • Inheritance
  • OOP best practices
  • Use of JavaDoc
  • Encapsulation
  • Interfaces using the Java 8 style
  • Abstract classes
  • Enums
  • The toString method
  • Try/catch blocks
  • The @Override annotation
  • Lists and maps
  • Making your own methods and classes that support generic types
  • printf
  • The Arrays utility class
  • Unit testing with JUnit
  • Asynchronous event handling
  • Inner classes
  • Concurrent programming with Java threads
  • Recognizing and dealing with race conditions
  • Parallel programming with the Java fork/join framework
  • Best practices for parallel applications
  • Lambda expressions
  • Method references
  • Lambda building blocks in the java.util.function package
  • Methods that return functions
  • Java 8 streams
  • Creating streams from lists, arrays, and individual values
  • Outputting streams as lists or arrays
  • Core stream methods
  • The new Optional class
  • Lazy evaluation and short-circuit stream operations
  • Streams specialized for numbers
  • Reduction operations
  • Parallel streams
  • Infinite (unbounded) streams
  • Grouping and partitioning stream elements
  • Java 8 stream-based file I/O
  • Network programming: clients
  • Network programming: servers
  • Multithreaded network servers
  • Object serialization

Who Should Take This Course

  • This LiveLessons course is aimed at developers who have at least moderate experience with other programming languages and want to learn Java as quickly as possible. The course moves too fast for first-time programmers. If you are already comfortable with previous Java versions and only want to learn the new Java 8 features, see Java 8 Lambda Expressions and Streams instead of this LiveLesson.

Course Requirements

  • Familiarity with fundamental programming concepts
  • At least moderate experience in programming with another language: C, C++, C#, Objective-C, Python, Perl, Ruby, or JavaScript preferred
  • No prior Java experience is required

Lesson Descriptions

Lesson 1 shows you where to get the Java development kit and the official API documentation, and how to create and execute Java programs in the Eclipse development environment.

Lesson 2 covers basic Java syntax: the main method, strings, loops, arrays, conditional statements, and basic mathematical operations.

Lesson 3 is the first of three lessons on object-oriented programming. If you have never used an object-oriented language before, then this lesson and the next are the most important two lessons in the entire LiveLesson course. OOP is the core programming strategy in Java.
This lesson covers four specific OOP topics: object-oriented terminology and conventions, instance variables, methods, and constructors.

Lesson 4 builds on the techniques from Lesson 3 by adding in three more capabilities: overloading, inheritance, and the toString method. More importantly, it discusses two programming strategies for making your code flexible and reusable: encapsulation and the use of JavaDoc.

Lesson 5 continues to flesh out OOP best practices covering three features in depth: abstract classes, interfaces, and enums. It also summarizes a number of other related advanced topics.

Lesson 6 covers Java applets and simple drawing techniques. This lesson is meant to introduce general topics like the @Override annotation, life-cycle methods, import statements, background threads, and try/catch blocks. Once you know some simple graphics, programming exercises are more interesting.

Lesson 7 introduces two very important data structures: lists and maps. It also explains how to create methods and classes that support generic types. In addition, it summarizes several useful classes and methods: the Arrays utility class, printf, varargs, and StringBuilder.

Lesson 8 shows you how to test the methods that you write using the JUnit testing framework.

Lesson 9 compares and contrasts four different techniques for handling asynchronous keyboard events: entirely separate classes, having the main class implement the appropriate interface, named inner classes, and anonymous inner classes.

Lesson 10 shows you how to perform concurrent programming using the Java threading framework. It first explains the difference between Java's concurrent and parallel programming frameworks. It then shows the basic approach, gives four variations on the theme, and discusses how to avoid the dreaded race conditions.

Lesson 11 shows you how to perform parallel programming using the Java fork/join framework. In addition to showing the techniques and showing examples, this lesson emphasizes the importance of two tasks:
   Verifying that the serial and parallel versions give the same answer
   Evaluating whether the parallel approach yields superior performance

Lesson 12 is the first of four lessons on lambda expressions. Lambdas are Java's way of representing functions. The lesson introduces lambda expressions and illustrates how their use can make your code more flexible and reusable. The lesson closes with two examples of applications that would be difficult and cumbersome without lambdas but which are relatively simple and short with them. The first is a numerical integration routine, and the second is a reusable tool for collecting performance-timing results.

Lesson 13 covers four topics: the @FunctionalInterface annotation, Method references, Lambda variable scoping rules, and the rules regarding effectively final local variables. The lesson shows you how the use of @FunctionalInterface will improve the internal implementation of the previous numerical-integration and timing applications and how method references will make it simpler to use the numerical integration code.

Lesson 14 looks at the pre-built functions in the java.util.function package. The lesson starts with the simply-typed versions and shows how using one of them can shorten our numerical-integration code. It then looks at five generically typed versions: Predicate, Function, Consumer, Supplier, and BinaryOperator. Most Java developers are not used to thinking about functional programming, so this lesson shows how applying functions can make certain applications shorter, simpler, easier to maintain, and more reusable.

Lesson 15 discusses two features of Java interfaces: default methods and static methods. It then uses this idea to improve the previous application that collected timing information. The second half of the lesson illustrates the power that comes from having methods that return lambdas, known as higher order functions.

Lesson 16 is the first of three lessons on streams. It provides an overview of streams and explains their benefits. It then shows you how to create streams and output them into standard Java. It also explains data structures and four of the most important stream methods: forEach, filter, map, and findFirst. The lesson closes with a discussion of lazy evaluation and shows you how it can dramatically improve data processing performance.

Lesson 17 starts out by discussing IntStream and DoubleStream, which are specializations of Streams for dealing with numbers. It then looks in great detail at reduction operations: operations that combine stream values to produce a single result. The lesson starts out with simple ones like min, max, and sum, and then finishes with the general-purpose reduce method. Finally, it discusses other stream methods, such as limit, skip, sorted, and anyMatch.

Lesson 18 starts off by looking at fancy ways to output, partition, or group streams. It then explains how to use parallel streams one of the most powerful stream features and gives a number of examples where parallel streams do or do not work effectively. The lesson closes with an explanation of so-called "infinite" streams: streams that have no preset size, but rather use a generator function to build the elements as they are needed.

Lesson 19 looks at File I/O. It starts by explaining both file reading and file writing, but in particular, it shows how applying the power of streams can dramatically simplify reading and processing files and folders. Specifically, it illustrates why the new Files.lines method is such a huge improvement over alternatives available in earlier Java versions.

Lesson 20 looks at building Java clients that talk to network servers. Along the way, it demonstrates techniques for parsing the strings that are retrieved from the servers. The lesson also summarizes how HTTP (Web) servers operate.

Lesson 21 looks at building Java servers that accept incoming socket connections and shows how (and why) to make these servers multithreaded. It illustrates the techniques by developing a simple HTTP server that can be invoked from an ordinary Web browser.

About LiveLessons Video Training The LiveLessons Video Training series publishes hundreds of hands-on, expert-led video tutorials covering a wide selection of technology topics designed to teach you the skills you need to succeed. This professional and personal technology video series features world-leading author instructors published by your trusted technology brands: Addison-Wesley, Cisco Press, IBM Press, Pearson IT Certification, Prentice Hall, Sams, and Que. Topics include IT certification, programming, Web development, mobile development, home and office technologies, business and management, and more. View all LiveLessons on InformIT at http://www.informit.com/livelessons.

Table of Contents
Product Details
Recommended for You
Customer Reviews
 
Buy 2 Get 1 Free Free Shipping Guarantee
Buying Options
Immediate Access - Go Digital what's this?
Video:  $149.99
(Streaming, Downloadable)