---
title: "Discussion on \"Static & Non-Static keywords.\" | Hashnode"
description: "Discussion on \"Static & Non-Static keywords.\". Let's say we have one class named Cat.\n\nThe Cat class is having two non-static attributes & one non-static method.\n\nSo to access or call the non-static methods & attributes we have to create the instance of class Cat.\n\n\n\n\nNow I'm creating a private s..."
url: "https://hashnode.com/posts/static-non-static-keywords/66328383285ae202c7f2cf3e"
---

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

Discussion

# [Static & Non-Static keywords.](https://qapragya.hashnode.dev/static-non-static-keywords?utm_source=hashnode&utm_medium=feed)

Let's say we have one class named Cat. The Cat class is having two non-static attributes & one non-static method. So to access or call the non-static methods & attributes we have to create the instance of class Cat. Now I'm creating a private s...

Apr 30, 2024 · 1 min read · qapragya.hashnode.dev  
Read the article

-   [#non-static](https://hashnode.com/tag/non-static)
-   [#static-code-analysis](https://hashnode.com/tag/static-code-analysis)
-   [#java-coding-practice](https://hashnode.com/tag/java-coding-practice)
-   [#java-code](https://hashnode.com/tag/java-code)
-   [#hashnode](https://hashnode.com/tag/hashnode)
-   [#blog](https://hashnode.com/tag/blog)
-   [#when-to-use-static-keyword-in-java](https://hashnode.com/tag/when-to-use-static-keyword-in-java)

## Written by

[Pragya kumari Swarnakar](https://hashnode.com/@QAPragya)

@QAPragya

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

Experienced QA Tester with a strong background in manual and automated testing. Possessing 3 years of hands-on experience in QA.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
