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 final method in java?

1037


Why main method is called first in java?

1014


In a container there are 5 components. I want to display all the component names, how will you do that?

2192


What is a generic data type?

1046


Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..

2308


What is the ==?

892


Which java version is latest?

1041


Write a java program to check if a number is prime or not?

1040


I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?

1102


What is meant by call by reference?

1010


What happens when a thrown exception is not handled?

1117


What is a layout manager and what are different types of layout managers available in java awt?

1247


What are different types of arrays?

1016


Why unicode is important?

941


What is the old name of java?

999