文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>[Java] Useful Classes: Object,Class,System,Runtime

[Java] Useful Classes: Object,Class,System,Runtime

时间:2010-09-13  来源:web_surf

  1. Package
    java.lang.
  2. Object
    It is the root base class of java classes hierarchy.
  3. Class
    It is in-memory representation of Java class. This representation serves as the starting point for querying class-felated information (such as modifier(static, public\private\protected, abstract, final), field, method).
  4. System
    • Operate input stream, output stream, error output stream
    • Get environment
    • Get/Set system properties
      The system properties are key-value pairs. The default properties provided ty VM are:
              java.vendor.url
      java
      .class.path
      user
      .home
      java
      .class.version
      os
      .version
      java
      .vendor
      user
      .dir
      user
      .timezone
      path
      .separator
      os
      .name
      os
      .arch
      line
      .separator
      file
      .separator
      user
      .name
      java
      .version
      java
      .home

    • Load library
    • Copy array
    • Get current time
    • Inform VM to run garbage collection at some good time
    • Inform to exit VM and stop program
  5. Runtime
    • Add VM shutdown hook
    • Load library
    • Memory
      1. Get maximum memory
      2. Get free/total memory available for the running program
    • Execute the specified program in the seperate process
    • Inform to stop VM
    • Inform to start garbage collection
  6. xxx
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载