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



System.out & System.in are final static data member of System class but we can change there re..

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

System.out & System.in are final static data member of System class but we can change there re..

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

Post New Answer

More Core Java Interview Questions

what are the differences between java and .net?..why u choose java?

1 Answers  


What is the difference between size and length in java?

0 Answers  


Is string is a class in java?

0 Answers  


Howmany number of objects we can store in an ArrayList. Is there any limit?

7 Answers   TCS,


Which list does not allow duplicates in java?

0 Answers  






How do you generate random numbers in java?

0 Answers  


what is life cycle of applet?

9 Answers  


What is memory leak and how does java handle it?

0 Answers  


What are the java ide's? Explain

0 Answers  


What mechanism does java use for memory management?

0 Answers  


What about features of local inner class?

0 Answers  


Write java program to reverse string without using api?

0 Answers  


Categories