---
title: "Discussion on \"Types of Variables\" | Hashnode"
description: "Discussion on \"Types of Variables\". Instance:- If the value of a variable is changing from an object to an object then it is called an instance variable\neg:-\n\nclass Employee {\n    void getEmployee () {\n        int x = 10; //not an instance variable\n    }\n\n    static {\n        int x = 1..."
url: "https://hashnode.com/posts/types-of-variables-in-java/67d853bd8d156200bc7d3db9"
---

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

Discussion

# [Types of Variables](https://manmohan0.hashnode.dev/types-of-variables-in-java?utm_source=hashnode&utm_medium=feed)

Instance:- If the value of a variable is changing from an object to an object then it is called an instance variable eg:- class Employee { void getEmployee () { int x = 10; //not an instance variable } static { int x = 1...

Mar 17, 2025 · 1 min read · manmohan0.hashnode.dev  
Read the article

-   [#types-of-variables](https://hashnode.com/tag/types-of-variables)
-   [#java](https://hashnode.com/tag/java)
-   [#springboot](https://hashnode.com/tag/springboot)
-   [#hibernate](https://hashnode.com/tag/hibernate)

## Written by

[Manmohan Wable](https://hashnode.com/@manmohan0)

@manmohan0

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
