Mega Code Archive

 
Categories / Java Tutorial / Development
 

The err field represents a PrintStream object

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.