2007年9月28日 星期五
Homework 9/21/2007
1. Explain bytecode, JVM
bytecode is the machine language for JVM
2. Explain class, object
class is the name for a type whose values are objects.
object are entities that store data and can take actions.
3. Reading Assignments:
Read 1.1, 1.2, 1.3 of Textbook
4.1 Write a Java program as follows:
Let i=2;
Print i;
Print 2 * (i++);
Print i;
Ans: 2, 4, 3
4.2 Write a Java program as follows:
Let i=2;
Print i;
Print 2 * (++i);
Print i;
Ans: 2, 6, 3
4.3 Write a Java program as follows:
Let m=7, n=2;
Print (double) m/n;
Print m/ (double)n;
Ans: 3.5, 3.5
bytecode is the machine language for JVM
2. Explain class, object
class is the name for a type whose values are objects.
object are entities that store data and can take actions.
3. Reading Assignments:
Read 1.1, 1.2, 1.3 of Textbook
4.1 Write a Java program as follows:
Let i=2;
Print i;
Print 2 * (i++);
Print i;
Ans: 2, 4, 3
4.2 Write a Java program as follows:
Let i=2;
Print i;
Print 2 * (++i);
Print i;
Ans: 2, 6, 3
4.3 Write a Java program as follows:
Let m=7, n=2;
Print (double) m/n;
Print m/ (double)n;
Ans: 3.5, 3.5
2007年9月20日 星期四
Homework 9/14/2007
1. Watch The Inside Story (Video), write your words on the development and inventor of Java.
目前還開不起來影片XD
2. List at least 5 applications of Java. You must provide the references you used. We recommend Google Search engine.
JAVA in cell phone or PDA
手機裡面很多程式也是JAVA寫的,我想就是所謂的內嵌
在教學方面的應用,也可以利用JAVA的優點和網路做結合,使得一些知識變的更加淺顯易懂 本例:物理知識
當然大家手機裡面的遊戲也是JAVA囉
這個很帥氣的感覺,用樂高呈現程式的執行,我想,弄出一個很厲害的機器人應該可以賺一筆錢吧~~!!!
目前還開不起來影片XD
2. List at least 5 applications of Java. You must provide the references you used. We recommend Google Search engine.
Java Card
原來JAVA就活在我們身邊,只是我們都沒發現JAVA in cell phone or PDA
手機裡面很多程式也是JAVA寫的,我想就是所謂的內嵌
在教學方面的應用,也可以利用JAVA的優點和網路做結合,使得一些知識變的更加淺顯易懂 本例:物理知識
當然大家手機裡面的遊戲也是JAVA囉
這個很帥氣的感覺,用樂高呈現程式的執行,我想,弄出一個很厲害的機器人應該可以賺一筆錢吧~~!!!
訂閱:
文章 (Atom)