![]() From example, the results may differ if you execute the same application from the Windows command line and from the Eclipse IDE. Notice that the results of the execution may differ from computer to computer and highly depend on the platform you execute the application. The execution of the main method in my personal computer prints the following information: Total Memory (in bytes): 48234496 ("Max Memory (in bytes): " + Runtime.getRuntime().maxMemory()) ("Free Memory (in bytes): " + Runtime.getRuntime().freeMemory()) ("Total Memory (in bytes): " + Runtime.getRuntime().totalMemory()) A sample main method that prints the aforementioned information is shown below:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |