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. JDBC stands for Java Database Connectivity. It is a Java API (Application Programming Interface) that allows Java programs to interact with databases. JDBC provides a … Read more

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. Serialization is the process of converting an object into a stream of bytes, allowing the object to be easily saved to a file, sent over a network, or stored in a database. … Read more

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. In Core Java, an I/O filter refers to an object that reads from one stream and writes to another, effectively filtering the data as … Read more

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. In Java, Reader and Writer are used for character-based input and output, whereas InputStream and OutputStream are used for byte-based input and output. Reader and Writer: Character-oriented: Reader and Writer are designed for reading and writing characters. Encoding: They deal with character encoding and … Read more

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 … Read more