Statelessness in Functions
Functions should be stateless in functional programming. It is important that functions do not depend on state or maintain the same which in not in their scope. This helps to keep functions independent...
View ArticleMutable States in Functional Programming
Functions are First class members in functional programming. Avoiding Mutable states is one of important property that a function should follow to ensure that there are no concurrency issues.
View ArticleJava 8 Features – An Introduction
Java 8 has major language changes and Feature additions. In this introduction, we will take a look at the language changes and feature additions and what made java to evolve.
View ArticleStatic Nested Classes in Java
Static Nested Classes Static Inner classes are those normal inner classes with static modifier. The main usage of static nested class is to access the static members and also directly able to access...
View ArticleJava Anonymous Inner classes
Anonymous Inner classes in Java – Example Anonymous Inner classes are those that does not have a class signature. They are created as a object creation statement which also carries the body of the...
View ArticleJava Method Local Inner classes
Method Local Inner classes in Java Method Inner classes are those which are declared inside a method. Method local inner classes help in encapsulating the functionality and make it more readable. The...
View ArticleJava Inner Classes – An Introduction
Java Inner Classes – An Introduction Inner classes are those which are wrapped inside a class. They are also called as nested classes. There are static inner classes, we can also call them as Static...
View ArticleJava TreeMap example
TreeMap in java sorts all its entries based on Natural ordering of the Key element.
View ArticleWhat is LinkedHashMap?
Linked HashMap is a datastructure Which maintains the insertion order for its entries. That means it arranges its entries exactly in the same order as they have been added. LinkedHashMap can be used in...
View ArticleWhy Polymorphism does not help and we need Generics
Why we cannot use super types which can refer to some subtypes so that we can keep the classes Generics? The answer is that using Super types or Object as reference does not help. There will be issues...
View ArticleMap in Java – HashMap Java example
Map in Java Map in java has a key and value pair objects. The combination of this Key and value pair is called an ENTRY With respect to Hierarchy, Map does not come under normal collections. The reason...
View ArticlePriorityQueue in Java
PriorityQueue in java is a sorting based queue. It sorts its elements based on the natural ordering of the type.
View ArticleThread Safety and Code synchronization in Java
Thread Safety is extremely important in Multithreading applications. Code Synchronization helps in preventing multiple threads accessing the code which might lead to Data inconsistency and confusion in...
View ArticleThread States and Priorities – Sleep, yield and Join methods demo
Thread States and Priorities Video Tutorial
View ArticleThread States and sleep, join and Yield methods
Threads from their creation to termination transit through different states like NEW, RUNNABLE, RUNNING, DEAD etc. This article explains about different thread states and their importance. I have also...
View ArticleMultithreading in Java – Introduction and Constructing Threads
Threads form the most important part of Java and are considered to be most important concept and basis for all the Java Enterprise Edition frameworks. This article explains how threads work in an Java...
View ArticleMultithreading in Java – An Introduction by Java9s
Multithreading in Java video tutorial - An Introduction with Simple Examples by Java9s Download the Multithreading Presentation material here Multithreading in Java – Creating Threads example –...
View ArticleOverriding in Java
Overriding in Java helps in implementing the Polymorphism. In this tutorial i have explained how Overriding concept works in Java
View ArticleMultiple Inheritance – Why it is not part of Java?
One reason why Java creators have avoided including the Multiple Inheritance is that it bring more complexity and confusion into the design. Read more to know what makes Multiple Inheritance look Ugly..
View ArticleObserver pattern in Java
OBSERVER PATTERN Need for Observer pattern: Any critical application will have a need to monitor the changes in Data and keep notifying the instances that are interested in changes. Let us consider a...
View Article