【正文】
int int class DataTypeDemo3{ public static void main(String args[]){ char a=39。 byte b=6。 long l=567L。 double d=。 //a自動轉(zhuǎn)換為 int類型后再運算 long ll=laa。 //b自動轉(zhuǎn)換為 float類型后再運算 double dd=ff/aa+d。 (ll=+ll)。 (dd=+dd)。 byte b=(byte)i。 ? float j=1i; ? //float j= ( float) 1i; ? //float j= (float) (1i)。 ? } ? } 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.