---
title: "Discussion on \"Data Types in Java\" | Hashnode"
description: "Discussion on \"Data Types in Java\". In Java, data types are used to define the size and type of data that can be stored in a variable. There are two types of data types in Java: primitive data types and reference data types.\nPrimitive Data Types\nPrimitive data types are the basic data ..."
url: "https://hashnode.com/posts/data-types-in-java/648876986214f1f1d66bf701"
---

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

Discussion

# [Data Types in Java](https://dronecodes.hashnode.dev/data-types-in-java?utm_source=hashnode&utm_medium=feed)

In Java, data types are used to define the size and type of data that can be stored in a variable. There are two types of data types in Java: primitive data types and reference data types. Primitive Data Types Primitive data types are the basic data ...

Jun 13, 2023 · 3 min read · dronecodes.hashnode.dev  
Updated Jun 16, 2023  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#newbie](https://hashnode.com/tag/newbie)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#beginners-learningtocode-100daysofcode](https://hashnode.com/tag/beginners-learningtocode-100daysofcode)
-   [#java-data-types](https://hashnode.com/tag/java-data-types)

## Written by

[Oluwafisayomi Ogunyemi](https://hashnode.com/@DroneCodes)

@DroneCodes · Syracuse, NY

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

Software Developer

Building for the now and the future.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
