3、要获取JVM的内存总量,可以调用Runtime的()方法。
A: totalMemory()
B: maxMemory()
C: freeMemory()
D: gc()
A: totalMemory()
B: maxMemory()
C: freeMemory()
D: gc()
举一反三
- 进行垃圾回收调用的方法为________________,要获得一个Runtime实例,调用的方法为_____________________
- 在程序中若想取得一个Runtime实例,则可以调用Runtime类的静态方法【】
- 【单选题】下面哪个选项可以获取Runtime类的实例() A. Runtime r = new Runtime(); B. Runtime r = Runtime.getRuntime(); C. Runtime r = Runtime.getInstance(); D. 其余选项都不能获取Runtime实例
- 下面哪个选项可以获取Runtime类的实例()
- 数组方法放置在JVM内存中——————