---
title: "Discussion on \"Static is bad!!\" | Hashnode"
description: "Discussion on \"Static is bad!!\". Are static methods or variables bad? While the answer is subjective but overuse of it is definitely bad as static represents a global state and its difficult to reason about and hard to test.\nRecently I was refactoring an old and found that there wer..."
url: "https://hashnode.com/posts/static-is-bad/5da825f8390a4e8252f3b18b"
---

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

Discussion

# [Static is bad!!](https://mukeshgupta.hashnode.dev/static-is-bad?utm_source=hashnode&utm_medium=feed)

Are static methods or variables bad? While the answer is subjective but overuse of it is definitely bad as static represents a global state and its difficult to reason about and hard to test. Recently I was refactoring an old and found that there wer...

Oct 17, 2019 · mukeshgupta.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#design-patterns](https://hashnode.com/tag/design-patterns)
-   [#oop](https://hashnode.com/tag/oop)
-   [#tdd](https://hashnode.com/tag/tdd)
-   [#static](https://hashnode.com/tag/static)

## Written by

[Mukesh Gupta](https://hashnode.com/@mukeshgupta)

@mukeshgupta

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

Software engineer

## Responses 1

Markdown supported · ⌘↵ to post

[Jayendra Gothi](https://hashnode.com/@Jayendra)

[Oct 19, 2019](https://hashnode.com/posts/static-is-bad/5da825f8390a4e8252f3b18b/comment/5daaf6a8f817f0800bd604d0)

Very insightful.. keep it up
