Java

  • Creating callback functions in Java

    If you are familiar with some event-driven languages such as JavaScript, especially the ES6 version or later, you probably have done some work with callback functions all the time. By […]

  • Why do you need to override equals and hashCode methods in Java?

    If you have used some data structures such as a hash map or a hash set for storing your custom object, you probably have to write your own implementation of […]

  • Delegate pattern with Consumer interface in Java

    As a Java programmer, sometimes you run into a situation when you want to take a task of an object and give it to another object, meaning the original object […]

  • Understand Method References in Java

    Before Java 8, to provide an implementation for an interface we need either to create a concrete class that implements this interface, or more concise we can use an anonymous […]

  • A Gentle Guide to Socket in Java

    What is Socket? A socket is an interface to send and receive data in two programs on the network in a bidirectional manner. In other words, a socket represent one […]

  • How to configure Tomcat Server to Run Web Application on IntelliJ IDEA

    In this article, we are going to learn how to configure the Tomcat server to run a simple “Hello World” application on the web browser with JSP and Servlet (i.e […]

  • Different ways to iterate any Map in Java

    1. Using entrySet() The Map.entrySet() returns a collection view Set<Map.Entry<K, V>> of the mappings in this map. To iterate over a map, we can use the getKey() method to get […]

  • Runnable and Callable in Java

    In the early days of Java programming, whenever you want to create a thread, usually you would need the help of whether extending the Thread class or implementing the Runnable […]

  • What’s new in Java 15?

    Java 15 will officially be released in September 2020, however its new and updated features are now available for us as early access for who wants to find out. In […]

  • A Guide To Functional Interfaces in Java

    A functional interface is an interface that contains exactly one abstract method. However, it still can have an arbitrary number of default or static methods. Talk about a functional interface […]

Buy Me a Coffee