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 are actual parameters?
What is class forname used for?
Compare java and python.
What do you mean by exception handling in Java?
How to sort array of 0 and 1 in java?
What is static and final keyword in java?
Difference between string, stringbuffer and stringbuilder?
What is java full form?
What is parsing a string?
How many ways can we create singleton class?
Is 9 a prime number?
Can static method access instance variables ?
How do you create a first line indent?
Is array a class in java?
What is the difference between a synchronized method and a synchronized block?