The err field represents a PrintStream object : System Class « Development « Java Tutorial
- Java Tutorial
- Development
- System Class
Its purpose is to display error messages that should get immediate attention of the user.
public class MainClass {
public static void main(String[] args) {
System.err.println("You have a runtime error.");
}
}
You have a runtime error.