System.out & System.in are final static data member of System
class but we can change there reference through setOut() &
setIn() method how...
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / vikas
but the Final method have there behavior to not get change but it get change through setIN() & setOut() methods how...
i know it is used to change its reference but why it get change if it is a final method...
| Is This Answer Correct ? | 0 Yes | 1 No |
What is a nested structure?
What is the concept of multithreading?
What is the purpose of static keyword in java?
What method is used to know the status of Checkbox(i.e it is checked or unchecked)?
What is the different types of functions?
When you declare a method as abstract method ?
What is a generic data type?
To obtain design information about an object, which class in used?
What is the symbol for line break?
What are the differences between path and classpath variables?
Is it necessary that each try block must be followed by a catch block?
What is ResourceBundle class?