Java - Medium Articles
Prerequisite – Image Processing in Java – Read and Write In this set, we will learn about the pixels of images, how we can get… Read More
Chained Exceptions allows to relate one exception with another exception, i.e one exception describes cause of another exception. For example, consider a situation in which… Read More
JVM(Java Virtual Machine) acts as a run-time engine to run Java applications. JVM is the one that actually calls the main method present in a… Read More
A Java Cursor is an Iterator, that is used to iterate or traverse or retrieve a Collection or Stream object’s elements one by one. In… Read More
transient is a variables modifier used in serialization. At the time of serialization, if we don’t want to save value of a particular variable in… Read More
In Java, Lambda expressions basically express instances of functional interfaces (An interface with a single abstract method is called a functional interface). Lambda Expressions in… Read More
Java has forever remained an Object-Oriented Programming language. By object-oriented programming language, we can declare that everything present in the Java programming language rotates throughout… Read More
On Campus Recruitment only for ” MCA ” There were 3 rounds: Round 1: Written( Offline written test which comprises of 3 modules) Module 1 : Technical… Read More
In computing, the producer-consumer problem (also known as the bounded-buffer problem) is a classic example of a multi-process synchronization problem. The problem describes two processes,… Read More
Prerequisite: Multithreading in Java, Synchronized in Java  Inter-thread communication in Java is a mechanism in which a thread is paused running in its critical section… Read More
Multi-threaded programs may often come to a situation where multiple threads try to access the same resources and finally produce erroneous and unforeseen results.  Why… Read More
Using Java in competitive programming is not something many people would suggest just because of its slow input and output, and well indeed it is… Read More
All data structure has their own special characteristics, for example, a BST is used when quick searching of an element (in log(n)) is required. A… Read More
Using volatile is yet another way (like synchronized, atomic wrapper) of making class thread-safe. Thread-safe means that a method or class instance can be used… Read More
Java HashSet class implements the Set interface, backed by a hash table which is actually a HashMap instance. No guarantee is made as to the… Read More
Prerequisite: Regular Expressions in Java Quantifiers in Java allow users to specify the number of occurrences to match against. Below are some commonly used quantifiers… Read More
In Java, Regular Expressions or Regex (in short) in Java is an API for defining String patterns that can be used for searching, manipulating, and… Read More
In order to understand how to swap objects in Java, let us consider an illustration below as follows: Illustration:  Let’s say we have a class… Read More
Object cloning means to create an exact copy of the original object. If a class needs to support cloning, it must implement java.lang.Cloneable interface and… Read More
When we assign an integer value to an Integer object, the value is autoboxed into an Integer object. For example the statement “Integer x =… Read More