Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 variables are stored in stack?

0 Answers  


What is the use of keywords in java?

0 Answers  


what is the replacement method of stop() of thread

8 Answers   IBM, TCS,


How many bits is size_t?

0 Answers  


what are the states associated in the thread? : Java thread

0 Answers  


What is the difference between error and an exception?

0 Answers  


What is temp in java?

0 Answers  


Define "Access specifiers" in java.

0 Answers   HCL,


What is scope of a variable?

0 Answers   TCS,


Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.

0 Answers  


What is the difference between Trusted and Untrusted Applet ?

2 Answers   IBM,


Why do we use threads in java?

0 Answers  


Categories