Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

code doubt  RSS feed

 
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() );
}
 
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
 
author and iconoclast
Sheriff
Posts: 24219
40
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Off to "Java in General (Beginner)."
 
A "dutch baby" is not a baby. But this tiny ad is baby sized:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!