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...

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a numeric string?

1002


What is the driver class?

1022


Can we write multiple catch blocks under single try block?

1073


What is a substring of a string?

1137


What access modifiers can be used for methods?

1088


What do you understand by an io stream?

1031


Can a class have 2 constructors?

877


Does java map allow duplicates?

873


What is arraylist class in java?

1039


Why we do exception handling in java and how many types of exceptions are there?

1103


What are singleton services?

875


Why call by value prevents parameter value change?

1057


What are the different collection views provided by maps?

977


What is difference between module and function?

1145


What is linked hashmap and its features?

993