---
title: "java数据类型占用字节对照表"
author: "vinnie424"
date: "2017-12-20T16:19:24Z"
tags: []
categories: ["编程语言"]
slug: "java"
draft: false
lastmod: "2017-12-20T16:37:05Z"
id: 2405220
url: "https://vinnie424.iteye.com/blog/2405220"
---

|类型	|字节（byte）	|位（bit）
|byte	|1		|8
|int	|4		|32
|short	|2		|16
|char	|2		|16
|long	|8		|64
|float	|4		|32
|double	|8		|64