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

What is a stream? what are the different types and classes
of Streams?

Answer Posted / kumar

Most of the programs work with external data stored either
in local files or coming from other computers on the
network. Java has a concept of working with so-called
streams of data. After a physical data storage is mapped to
a logical stream, a Java program reads data from this
stream serially - byte after byte, character after
character, etc. Some of the types of streams are byte
streams (InputStream, OutputStream) and character streams
(Reader and Writer). The same physical file could be read
using different types of streams, for example,
FileInputStream, or FileReader.

There are different types of data, and hence different
types of streams.

Here's the sequence of steps needed to work with a stream:
1. Open a stream that points at a specific data
source: a file, a socket, URL, etc.
2. Read or write data from/to this stream.
3. Close the stream.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a stack class in java ?

1104


What is character in data type?

960


Explain static nested classes ?

1109


What is scope & storage allocation of global and extern variables? Explain with an example

1035


Discuss different types of errors that generally occur while programming.

1033


What is java in layman terms?

1002


Can java object be locked down for exclusive use by a given thread?

993


What is the default value of float and double datatype in java?

1010


What is a class reference?

1091


How do you escape json?

993


Is node a data type in java?

997


Is .net better than java?

1012


This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }

986


What is string [] args?

999


What is bean? Where it can be used?

1081