System.out & System.in are final static data member of System
class but we can change there reference through setOut() &
setIn() method how...
Answer Posted / rupakbhuyan
The System class provides the static methods setIn(),
setOut(), and setErr() for this purpose. The setIn() method
requires an argument of type InputStream that specifies the
new source of standard input. The other two methods expect
an argument of type PrintStream.
| Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
What is final method in java?
Why main method is called first in java?
In a container there are 5 components. I want to display all the component names, how will you do that?
What is a generic data type?
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..
What is the ==?
Which java version is latest?
Write a java program to check if a number is prime or not?
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?
What is meant by call by reference?
What happens when a thrown exception is not handled?
What is a layout manager and what are different types of layout managers available in java awt?
What are different types of arrays?
Why unicode is important?
What is the old name of java?