André OrianiFollowBetter Programming--ListenShareThis is the third article in the series. I invite you to read the previous one before proceeding.Now that you fixed all the name clash… Read More
Introduction to Java and Scala
Java and Scala are two of the most popular programming languages used in the software industry today. Both languages are widely used for developing enterprise… Read More
Hashing is a fundamental concept in computer science, used to efficiently store and retrieve data. A hash function is a mathematical algorithm that maps data of arbitrary size to a fixed-siz… Read More
The story of small FixedSizeCollection types in Eclipse CollectionsPhoto by Edward Howell on UnsplashSometimes, You’re on Your OwnEvery once in a while, we are required as ap… Read More
Table of ContentsWhat is the toString() method?Why is the toString() method important?Understanding the default implementation of toString()Overriding the toString() method for custom class… Read More
Hashing is a fundamental concept in computer science that is used to map data of arbitrary size to fixed-size values. In Java, the hashCode() method is used to generate a hash code for an ob… Read More
HashTable
HashTable
is a data structure that maps keys to values. Any non-null object can be used
as a key or as a value.
HashTable
vs HashMap
HashMap is
almost equivalent to Hash… Read More
All About Class URL in JavaClass URL represents a uniform resource locator-a pointer to a resource on the world wide web such as webpage or FTP dire… Read More
Class UnsupportedFlavorException in javaAn exception of this type signals that a Transferable object could not provide data in the requested format… Read More
Class Runtime in JavaEvery Java application has a single instance of class Runtime. Runtime class allows the application to interact with the enviro… Read More
Hive Databases
Apache Hive is an open source data warehousing and SQL-like query language for big data processing on Apache Hadoop. It provides a structure to store, mana… Read More
Definition of Java nio ByteBuffer
Java nio bytebuffer is defined as direct or non-direct. Bytebuffer holds the integer value sequence used in an IO operation. The bytebuffer provides four ca… Read More
Exchanger in Java is one of the Synchronization class added along with other synchronization classes like CyclicBarrier, CountDownLatch, Semaphore and Phaser in java.util.concur… Read More
What is bag? Bag is an unordered collection, which can contain duplicate elements. Bag vs Set Bag can contain duplicates, whereas set do not contain duplicates. Bag vs List Bag… Read More
ArrayList is one of the most used Collections and why shouldn't it be? It's easy to use, has many implemented methods to provide all the important functionality and it is fast. But that fas… Read More
HashMap in Java is Hash table based implementation of the Map interface that is used for storing (key, value) pairs. HashMap class in Java extends AbstractMap class and implements Map, Clon… Read More
How to Compare Two Objects in JavaJava Object class is the super class of all the Java classes. All Java classes implements the Object class by default. The Java Object class provides t… Read More
Records are classes to define immutable data. This is added as a preview feature in Jdk15. Let’s learn more about records using an example. Without records Prior to recor… Read More
In Java, object.toString()method return the string representation of an object. toString() method is defined in ‘java.lang.Object’ class, subclasses can override this method and… Read More
(Read this article on the blog)
Last updated on 2022/04/26 to include changes up to JDK 18.
This article is also available in Chinese by Alex Tan.
When Java 8 introduced Streams and Lambda… Read More
In this post, I am going to implement ArrayMap, which use array as internal data structure. Since most of the operations have O(n) time complexity, it can be used only for the map with small… Read More
Introduction to Kotlin Data Class
The kotlin data class is one of the types and features for to hold the user input data and state in such cases we use some standard functions for to derive… Read More