|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/java-optional-in-depth/
课程评论:没有评论
课程名称:Java Optional 和 null - 概念、设计与实践 课程概述:本课程深入探讨了Java编程中的一个基本概念——'null',以及如何通过正确使用Optional来解决与null相关的许多问题。课程中解答了一些关键问题,包括:null是一个糟糕的概念,还是其实现存在问题?如何防止NullPointerExceptions?何时以及如何使用Optional?Optional的替代方案有哪些?在我的应用程序中,与null相关的一些关键设计考虑是什么?其他语言如何处理null?希望通过这门课程,您能深入理解null的本质,从而更自信地设计和开发应用程序。我希望能消除您对null的疑虑,并期望您能强有力地理解Java的Optional如何帮助解决与null相关的一些问题,同时了解它与Streams之间的关系。理解几个核心概念将使您能够更好地使用这些工具,避免困惑。 课程大纲:无
This is an in-depth look at a truly fundamental concept in Java programming - 'null' and how Optional, if used properly can address many of the issues associated with null. Some of the questions I answer include:Is null a bad concept or is the implementation that's the problem?How to prevent NullPointerExceptions?How and when should Optional be used?What are the alternatives to Optional?What are some key design considerations in regards to null in my application?What are other fundamental null concepts such as the Null Object Pattern etc?How do some other languages handle null?I hope that by the end of the course you will have a solid understanding of what null really is so you can design and develop your applications with confidence. I want to remove those nagging doubts you may have about null. I'm hopeful that you will have a really strong understanding of how Javas Optional can help to deal with some of the issues surrounding null and also understand how it interplays with Streams. This is often what causes a lot of the confusion. However by understanding a few core concepts I believe this can be a thing of the past and you can use these tools in the best way possible.