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 |
How to make a class or a bean serializable?
when a servlet sends request for first time it uses the follwing methods a)init b)doget() c)dopost() d)service
What is a treeset class?
What about interrupt() method of thread class ?
What does percent mean in java?
Is string serializable in java?
If circular link of two objects, then will it be garbage collected ?
If I have 1000 objects and my requirement is to sort them quickly, then which collection would you recommend and why?
What is the list interface in java programming?
How we can declare a static variable?
how can u apply shallow cloning and deep cloning to create object?
How we can run a jar file through command prompt in java?