---
title: "Discussion on \"How To handle NullPointerException Using Optional Class\" | Hashnode"
description: "Discussion on \"How To handle NullPointerException Using Optional Class\". How to handle NullPointerException using Optional class"
url: "https://hashnode.com/posts/how-to-handle-nullpointerexception-using-optional-class/615b59e0ad6beb6f6506f756"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How To handle NullPointerException Using Optional Class](https://techwithmaddy.com/how-to-handle-nullpointerexception-using-optional-class?utm_source=hashnode&utm_medium=feed)

How to handle NullPointerException using Optional class

Oct 4, 2021 · 5 min read · techwithmaddy.com  
Updated Mar 10, 2024  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#functional-programming](https://hashnode.com/tag/functional-programming)

## Written by

[Maddy](https://hashnode.com/@Maddy25)

@Maddy25 · London, UK

  
[View profile](https://hashnode.com/@Maddy25)

Technical Writer @ Cloudflare

Software engineer turned technical writer.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
