What Is Java Console?
The Java Console is a special program used to assist developers in finding and correcting bugs in their applications. It is not the same as the program JConsole, used by systems administrators to monitor the Java virtual machine.
-
System.out and System.err
-
All systems have a "system out" and "system error" stream that programs can use to log important information for developers, though end users rarely encounter them, especially on Windows or Mac OS X. Java Console shows all information sent to the system out and system error streams by Java programs.
Force Garbage Collection
-
The Java Console has a special function to force the Java "garbage collector" to run. This special program runs regularly and returns memory to the operating system that is no longer being used by programs.
-
Memory Dump Options
-
The Java Console has a number of options for dumping into log files all the information as it currently exists in the Java Virtual Machine. This can be an important tool for assisting Java developers to find particularly difficult bugs.
Tracing Options
-
Programmers can use the Java Console to keep track of everything a program in the virtual machine does for later inspection.
-