Skip to content

Category Archives: Java

The SequenceInputStream class allows you to concatenate multiple InputStreams. It reads data of streams one by one. It starts out with an ordered collection of… Read More
Java.io.StreamTokenizer class parses input stream into “tokens”.It allows to read one token at a time. Stream Tokenizer can recognize numbers, quoted strings, and various comment… Read More
A data output stream lets an application write primitive Java data types to an output stream in a portable way. An application can then use… Read More
Java provides various data types just likely any other dynamic languages such as boolean, char, int, unsigned int, signed int, float, double, long, etc in… Read More
This article is aimed at giving a Java implementation for pattern printing.  Simple pyramid pattern Java import java.io.*;   // Java code to demonstrate star… Read More
An InputStreamReader is a bridge from byte streams to character streams. It reads bytes and decodes them into characters using a specified charset. The charset… Read More
In the previous article, we saw how we can create a URL object and get the information of any resource on the internet. But barely… Read More
Bufferreader class writes text to character-output stream, buffering characters.Thus, providing efficient writing of single array, character and strings. A buffer size needs to be specified,… Read More
The question mark (?) is known as the wildcard in generic programming . It represents an unknown type. The wildcard can be used in a… Read More
java.math class and its methods | Set 1 java.math class and its methods | Set 2  ceil() : java.math.ceil(double a) method returns the smallest possible value… Read More
java.lang.System class provides useful methods for standard input and output, for loading files and libraries or to access externally defined properties. The java.lang.System.arraycopy() method copies a… Read More
Boolean class methods. About : java.lang.Boolean class wraps primitive type boolean value in an object.Class Declaration   public final class Boolean extends Object implements Serializable, Comparable Constructors… Read More
What is an Exception? An exception is an unwanted or unexpected event, which occurs during the execution of a program i.e at run time, that… Read More
FileOutputStream class belongs to byte stream and stores the data in the form of individual bytes. It can be used to create text files. A… Read More
In this post, a group chat application using MulticastSocket (Java Platform SE 7) class is discussed. A MulticastSocket is a (UDP) DatagramSocket, with additional capabilities… Read More

Start Your Coding Journey Now!