若要获取当前系统属性,以下哪种方法最为合适? A. System.currentTimeMillis() B. Runtime.getRuntime() C. System.getProperties() D. System.gc() 答案解析 System.getProperties()方法可以获取当前的系统属性,返回一个Properties对象。currentTimeMillis()用于获取时间戳,getRuntime()用于获取Runtime对象,gc()用于运行垃圾回收器。 正确答案:C