Saturday, May 10, 2008

Java Interview Questions 52

256. What is a stream and what are the types of Streams and classes of the
Streams?- A Stream is an abstraction that either produces or consumes information.
There are two types of Streams and they are: Byte Streams: Provide a convenient
means for handling input and output of bytes. Character Streams: Provide a
convenient means for handling input & output of characters. Byte Streams classes:
Are defined by using two abstract classes, namely InputStream and OutputStream.
Character Streams classes: Are defined by using two abstract classes, namely Reader
and Writer.

257. What is the difference between Reader/Writer and InputStream/Output
Stream?- The Reader/Writer class is character-oriented and the
InputStream/OutputStream class is byte-oriented.

258. What is an I/O filter?- An I/O filter is an object that reads from one
stream and writes to another, usually altering the data in some way as it is passed
from one stream to another.

259. What is serialization and deserialization?- Serialization is the process of
writing the state of an object to a byte stream. Deserialization is the process of
restoring these objects.

260. What is JDBC?- JDBC is a set of Java API for executing SQL statements. This
API consists of a set of classes and interfaces to enable programs to write pure
Java Database applications.

No comments:

Useful Information