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 / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to instantiate the abstract class?

627


How can we make sure main() is the last thread to finish in java program?

779


Who found java?

657


Why do we need data structure in java?

682


Can we access the non-final local variable, inside the local inner class?

621






What does \ mean in regex?

729


What is the arraylist in java?

623


Is java free for businesses?

663


What is string manipulation?

593


What is core java called?

621


How many types of variables are there?

767


What is the scope or life time of instance variables?

761


What is method overloading in JAVA? Why is it not present in C ?

666


Which is faster string or stringbuilder?

599


What is pre increment and post increment in java?

584