1.5.11

May 2

1.

static method can be performed doesn't depend on any object

ex. Math.pow(); //its just use classname followed by the method name

class variables : a variable that declare with static,which all this class object share one value

ex. in Math class there is a Class Constants : public final static PI = 3.14159265358979323846

keyword "final" same as the "constant" in C++

static method cant access non-static member or method directly (htp p.246)




2.the args[0] is the first argument not the program name,
in the other hand,there is the program name(probably ./a.out) in C



3.java.awt.color


4.JRE(Java執行環境,Java Runtime Environment)

import 只是請
編譯器幫你打字,讓編譯器把沒有姓的類別加上姓,並不會把別的檔案的程
式碼寫進來。如果你想練習打字,可以不要使用 import,只要在用到類別的
時候,用它的全部姓名來稱呼它就行了(就像例子一開始那樣),跟使用
import 完全沒有甚麼兩樣。



                                                                         at HackingGym

沒有留言:

張貼留言

abnormalize by 凛として時雨 on Grooveshark