class RuntimeMeth{
void f(){
System.out.println(Runtime.totalMemory());//错误方:RuntimeMeth.java:3: 
//non-static method totalMemory() cannot be referenced from a
  //static context
}
public static void main(String[]args){
int []a=new int[10000];
new RuntimeMeth().f();
}
}
为什么会出现这样的错误呢?哪个是静态的?Runtime吗?不是吧?