---
title: "Discussion on \"Java (Data Types and type casting)\" | Hashnode"
description: "Discussion on \"Java (Data Types and type casting)\". Data Types\nAs explained in the previous chapter, a variable in Java must be a specified data type:\nData types are divided into two groups:\n\nPrimitive data types - includes byte, short, int, long, float, double, boolean and char\n\nNon-primitive data ty..."
url: "https://hashnode.com/posts/java-data-types-and-type-casting/6516e3d7eef4f42a7f29e77a"
---

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

Discussion

# [Java (Data Types and type casting)](https://namangargjava-dsa.hashnode.dev/java-data-types-and-type-casting?utm_source=hashnode&utm_medium=feed)

Data Types As explained in the previous chapter, a variable in Java must be a specified data type: Data types are divided into two groups: Primitive data types - includes byte, short, int, long, float, double, boolean and char Non-primitive data ty...

Sep 29, 2023 · 3 min read · namangargjava-dsa.hashnode.dev  
Updated Oct 4, 2023  
Read the article

-   [#dsainjava](https://hashnode.com/tag/dsainjava)
-   [#java](https://hashnode.com/tag/java)
-   [#dsa](https://hashnode.com/tag/dsa)
-   [#dsa-course](https://hashnode.com/tag/dsa-course)

## Written by

[Naman Garg](https://hashnode.com/@namangarg3311)

@namangarg3311 · India

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
