【正文】
E+308 ~ +308 字符 型 char 16 “\u0000” “\u0000” ~ “\uFFFF” 布爾 型 boolean 8 false true, false 整數(shù)類型 ? 整數(shù)類型有 int、 long、 byte、 short四種。//ss變量表示八進制 short整數(shù) class DataTypeDemo1{ public static void main(String args[]){ int decVar=10。 } } 浮點類型 ?浮點類型包括單精度 float和雙精度 double兩種。注意使用這種類型時,必須將該字符用單引號括起來。 double radius = 。 long l=567L。 (ll=+ll)。 ? } ? } exercise ? Create a small program that defines some fields. Try creating some illegal field names and see what kind of error the piler produces. Use the naming rules and conventions as a guide. ? In the program you created in Exercise 1, try leaving the fields uninitialized and print out their values. Try the same with a local variable and see what kind of piler errors you can produce.