---
title: "Discussion on \"6 Tips and Tricks to avoid NullPointerException\" | Hashnode"
description: "Discussion on \"6 Tips and Tricks to avoid NullPointerException\". Get rid of NullPointEception like a pro using Optional Class and various other best practices."
url: "https://hashnode.com/posts/6-tips-and-tricks-to-avoid-null-pointer-exception/620628329e350308247feebc"
---

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

Discussion

# [6 Tips and Tricks to avoid NullPointerException](https://blog.iamprafful.com/6-tips-and-tricks-to-avoid-null-pointer-exception?utm_source=hashnode&utm_medium=feed)

Get rid of NullPointEception like a pro using Optional Class and various other best practices.

Feb 11, 2022 · 5 min read · blog.iamprafful.com  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#software-development](https://hashnode.com/tag/software-development)

## Written by

[Prafful Lachhwani](https://hashnode.com/@Prafful)

@Prafful · Pune, India

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

Full Stack Developer | TCS | Winner SIH 2018

Hey there, I'm a developer, technical writer and YouTuber. I currently work as a Full Stack Developer at Amdocs. I have expertise in building full-stack apps using Spring Boot, Vue.js, Laravel, Flutter, MySQL. I am currently learning Next.js, GraphQL and MERN stack.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
