0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Java】問題No.1

Posted at

問題1

  • Javaのデータ型には大きく分けて二通りあります。
    1つはプリミティブ型(基本データ型)、もう1つは参照型です。
    では、プリミティブ型には、どのような種類の型があるでしょうか?
    すべて記載してください。
    ※ヒント:全部で8種類

解答1

【基本データ型】

No 初期値 サイズ
1 boolean false ? Byte
2 char ¥u0000 2 Byte
3 byte 0 1 Byte
4 short 0 2 Byte
5 int 0 4 Byte
6 long 0L 8 Byte
7 float 0.0f 4 Byte
8 double 0.0d 8 Byte
※1Byte = 8bit
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?