- 深入淺出Java編程
- 遲殿委 王健編著
- 194字
- 2022-07-29 14:19:53
2.8 課后練習
1.簡要說明Java中的基本數據類型各占用幾個字節。
2.( )是有效的標識符。
A.THIS
B.3name
C._3name
D.my Name(中間有空格)
3.int的取值范圍為( )。
A.-232~232-1
B.-231~231-1
C.-2G ~ 2G-1個字節
D.-128~127
4.( )是正確的boolean值的賦值方式。
A.boolean boo = true;
B.boolean boo = null;
C.boolean boo= 0;
D.boolean boo = -1;
5.成員變量int[] ints;的默認值為( )。
A.0
B.null
C.-1
D.1
6.成員變量的聲明是“int[] ints = new int[3];”,則ints[0]的值為( )。
A.null
B.0
C.undefined
D.-1
推薦閱讀
- INSTANT Mock Testing with PowerMock
- C程序設計案例教程
- 深入淺出Go語言編程
- Unity&VR游戲美術設計實戰
- Hands-On Neural Network Programming with C#
- Xcode 6 Essentials
- Java高手是怎樣煉成的:原理、方法與實踐
- Applied Deep Learning with Python
- SFML Game Development
- Laravel Design Patterns and Best Practices
- 樹莓派開發從零開始學:超好玩的智能小硬件制作書
- MySQL從入門到精通
- Learning Zimbra Server Essentials
- Visual Basic.NET程序設計
- 瘋狂Ajax講義(第3版)