Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

code doubt  RSS feed

 
magi devi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
may i know what for it is used?
is it used to get ram utilization?
i want to know about getruntime(),free memory() ?
what is the package name?

static
{
System.err.println( "in static initializer in Main..." );
System.err.println( " free memory: " + Runtime.getRuntime().freeMemory() );
}
 
Jan Groth
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html

that's hardly an advanced question. please try to post in the appropriate forum for future questions...

regards,
jan
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Off to "Java in General (Beginner)."
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!