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

How many types of parsers are there?

1014


Which is better ascii or unicode?

988


What super () does in java?

904


Why does java not support operator overloading?

1131


How does a for loop work java?

1032


How to perform merge sort in java?

1055


String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

965


Explain inheritance in java?

982


What is constructor chaining and how is it achieved in java?

1139


What is private static in java?

1039


What is the difference between C++ and Java and your preferences?

1109


Write a program to print 15 random numbers using foreach of java 8?

931


How many types of memory areas are allocated by JVM in java?

1067


How do I enable java in safari?

1026


What is array list in java?

1073