|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/java-generics-collection-framework-and-streams/
课程评论:没有评论
**课程名称:** Java 泛型、集合框架与 Streams API **课程概述:** 本课程旨在帮助您深入理解 Java 编程中的三个核心概念:泛型、集合框架以及 Streams API。 您将首先学习 Java 泛型的强大之处,包括如何创建泛型类、泛型接口和泛型方法。泛型允许您将类型作为参数传递,从而实现代码的重用,就像方法参数一样,但作用于类型层面。 接着,课程将带领您探索 Java 集合框架,重点学习各种重要的数据结构,如 List、ArrayList、HashMap、HashSet、LinkedList 等,并理解它们的应用场景和性能特点。 此外,课程还将讲解 Java Optional 的使用,学习如何有效地避免 NullPointerException,为后续学习 Streams API 打下坚实基础。 最后,您将深入学习 Java Streams API,掌握其工作原理以及filter()、map()、flatMap()、reduce()、collect()等常用操作方法,从而能够以更简洁、更高效的方式处理数据集合。 **学习目标:** * 熟练掌握 Java 泛型的概念和用法,能够编写泛型类、接口和方法。 * 深入理解 Java 集合框架,熟悉 List、Set、Map 等常用数据结构及其实现类。 * 掌握 Java Optional 的使用,有效规避空指针异常。 * 熟练运用 Java Streams API 进行数据流式处理,提高代码的简洁性和效率。 **课程价值:** 完成本课程后,您将对 Java 泛型、集合框架和 Streams API 拥有扎实的理解,能够将其应用于实际开发中,编写出更健壮、更高效的 Java 代码。
Learn about Java Generics and how to create Generic classes. You also learn about Generic Interfaces and Methods. After learning and understanding Java Generics we then dive into the Java Collections Framework where we learn about data structures such as List, ArrayList, HashMap, HashSet, LinkedList.and so on. Generics are an important part of the Java programming language.We have extra lessons on Java Optional which helps us avoid null pointer exceptions in Java. You will learn about Optionals because it's knowledge will be applied when you learn about Java Streams API. Finally, we learn about the Streams API, how it works and the various methods such as filter(), map(), flatMap(), reduce(), collect().and so on.After this course, you should have a solid understanding of the Java Generics, the Collection Framework with its Data Structures and the Java Streams API. In a nutshell, generics enable types (classes and interfaces) to be parameters when defining classes, interfaces and methods. Much like the more familiar formal parameters used in method declarations, type parameters provide a way for you to re-use the same code with different inputs. The difference is that the inputs to formal parameters are values, while the inputs to type parameters are types. (Java Docs)