Q1.HowcouldJavaclassesdirectprogrammessagestothesystemconsole,buterrormessages,saytoafile?.TheclassSystemhasavariableoutthatrepresentsthestandardoutput,andthevariableerrthatrepresentsthestandarderrordevice.Bydefault,theybothpointatthesystemconsole.Thishowthestandardoutputcouldb