JVM:Bytecode is the machine language for a fictitious computer called the JVM.
Object(物件):物件是我們所設定的一個單位,而每個物件都可以擁有其屬性和動作.
Class(類別):相似的物件歸類在一起則稱為class.
4.1 Write a Java program as follows:
Let i=2;
Print i;
Print 2 * (i++);
Print i;
4.2 Write a Java program as follows:
Let i=2;
Print i;
Print 2 * (++i);
Print i;
4.3 Write a Java program as follows:
Let m=7, n=2;
Print (double) m/n;
Print m/ (double)n;
沒有留言:
張貼留言