answersLogoWhite

0


Best Answer

Sytem.out amd System.err is used to get the output, and refer to standard output strem and which is by default console ... u can send the output to any other stream or log file either by importing java.io.file and show the output to the console and run time error to any file using exception handling .... or u can give the command while running the program which will redirect this to log file as ... java ClassName 2error.log this will send error message to error.log file and output to console. ... u can send both the output and error to log file as... java ClassName output.log 2 error.log ... here ClassName is the name of the calss file which u wanted to execute

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How could Java classes direct program messages to the system console but error messages say to a file?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

A program that uses prompting messages to direct the user's input is running in?

Interactive mode


How do you get eclipse to put its output in a command line console window?

Any program you run in eclipse will direct standard output to the eclipse console window. If you want to run it in a cmd window (Windows) or a shell (*NIX), then you need to run the program yourself from outside of eclipse.


You cannot find direct message in Twitter?

In New Twitter, the "Messages" tab located at the top of the page along from the search bar is where your Direct Messages are located.


What does dms mean on Instagram?

it means direct messages


What is CYDM on Twitter?

It stands for Check Your Direct Messages.


Where do you receive direct messages in twitter?

onyour wall


What is the direct object in the following sentence Officials gave runners messages to carry hundreds of miles?

messages


Can I send messages to who doesn't follow me on twitter?

nope. You can't send them direct messages but you can mention them on one of your tweets.


What do you call a message sent on twitter?

Tweets. Private messages are called Direct Messages or DM for short.


What is a device that helps direct messages between networks?

Router


How can you send a group direct message with an image attached in twitter?

You can't send group direct messages.


What is the difference between the direct and indirect base class?

Direct base classes are those that are specified in a derived class' inheritance declaration. Indirect base classes are those that are inherited via the direct base classes. class A{}; class B : public A{}; class C : public B{}; With respect to C, B is direct while A is indirect. With respect to B, A is direct.