Daemon thread in Java

Daemon thread in java: Daemon thread is a low priority thread providing services to the user thread. This thread runs in the background to perform tasks such as garbage collection. Major Properties: It cannot prevent the JVM from exiting when all the user threads finish their execution. JVM terminates itself […]

Stacks In Java

Stack is a linear data structure ( an abstract data type ) with a fixed capacity. Linear data structure which is simple to use and allows adding and removing elements in a particular order i.e. a last-in-first-out (LIFO)  order. Every element enters the stack from the top and leaves from the […]

NETWORK PROGRAMMING

Network Programming The term network programming refers to writing programs that execute across multiple devices (computers), in which the devices are all connected to each other using a network. Such programs enable processes to communicate with each other across a network. Communication over a network takes place through protocols like […]

Network Programming with Java Sockets

Network Programming with Java Sockets The java.net package of the J2SE API contains a collection of classes and interfaces that provide the low-level communication details required for network programming. At the core of Java’s networking support is the concept of a socket. A socket is a software endpoint that establishes […]

Indexed sequential file organization and Chaining

Indexed sequential access file combines both sequential file and direct access file organization. In indexed sequential access files, records are stored randomly on a direct access device such as a magnetic disk by a primary key. This file has multiple keys. These keys can be alphanumeric in which the records […]