Difference between ?System.out.println?
and ?System.error.println??
Answer Posted / narendrakumar
System.out.println(""); are used for displaying the data on
the console monitor and also send the data to the files...
But In System.err.println(""); mainly used for displaying
the err msg on the console monitor(stderr(standard
error))But we
cannot send the data to the file...only console monitor
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
What is the tradeoff between using an unordered array versus an ordered array?
What does a void function return?
Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.
What is "this" keyword in java? Explain
What is broken and continue statement?
What are the states of thread in java?
What are different ways of object creation in java ?
What is wrapper class html?
What is finally block?
Can I import same package/class twice?
What is the synchronized method modifier?
What is static import in java?
What are the types of methodology?
What is the default execution method in java?