Java - Medium Articles
Given a matrix containing lower alphabetical characters only, we need to print all palindromic paths in given matrix. A path is defined as a sequence… Read More
This class is serialization’s descriptor for classes. It contains the name and serialVersionUID of the class. The ObjectStreamClass for a specific class loaded in this… Read More
Given a string return all possible subsequences which start with a vowel and end with a consonant. A String is a subsequence of a given… Read More
Inheritance in Java programming is the process by which one class takes the property of another other class. i.e. the new classes, known as derived… Read More
I solved 2 problems in CodeVita 2017. So I was directly called for interviews trespassing all intermediate rounds. First, they took us to a Hall… Read More
Problem : Given a cost function f: R^n –> R, find an n-tuple that minimizes the value of f. Note that minimizing the value of… Read More
Given a perfect binary tree, print nodes of middle level without computing its height. A perfect binary tree is a binary tree in which all… Read More
There may be times when you want to restrict the types that can be used as type arguments in a parameterized type. For example, a… Read More
The Properties class represents a persistent set of properties. The Properties can be saved to a stream or loaded from a stream. It belongs to… Read More
Among the facilities provided by the System class are standard input, standard output, and error output streams; access to externally defined properties and environment variables;… Read More
Prerequisite : PrintWriter , BufferedReader Given a file input.txt . Our Task is to remove duplicate lines from it and save the output in file… Read More
Prerequisite : PrintWriter , BufferedReader Let the given two files be file1.txt and file2.txt. Our Task is to merge both files into third file say… Read More
Can you run Java program without making class? The idea is to us enum is Java. Every enum constant is always implicitly public static final.… Read More
PING stands for Packet InterNet Groper in computer networking field. It’s a computer network administration software used to test the reachability of a host on… Read More
Suppose we have two Strings :- Pattern and Text pattern: consisting of unique characters text: consisting of any lengthWe need to find the number of patterns that… Read More
Background The traditional way to achieve thread synchronization in Java is by the use of synchronized keyword. While it provides a certain basic synchronization, the… Read More
This class is used to create operating system processes. Each ProcessBuilder instance manages a collection of process attributes. The start() method creates a new Process instance… Read More
Prerequisites: Image Processing in Java – Read and Write Image Processing In Java – Get and Set Pixels Image Processing in Java – Colored Image… Read More
Prerequisites: Image Processing in Java – Read and Write Image Processing In Java – Get and Set Pixels Image Processing in Java – Colored Image… Read More
Prerequisites : Introducing threads in socket programming, Multi-threaded chat Application | Set 1 This article gives the implementation of client program for the multi-threaded chat… Read More