Higher Order Functions are functions that take other functions as arguments or return functions as their results. The idea of Higher Order Functions is borrowed from functional programming, and it allows JavaScript to be more expressive and concise. Higher Order Functions are a powerful tool in the hands of developers, as they can use them … Read More “Javascript | Higher Order Functions with examples” »
Tag: programming
Hoisting is a term used in JavaScript to describe the behavior of variable and function declarations being moved to the top of their respective scopes during the execution of the code. This can sometimes lead to unexpected behavior and bugs in your code if you’re not familiar with how it works. In this article, we’ll … Read More “Understanding Hoisting in JavaScript” »
Java is a widely-used programming language that has been around since the mid-1990s. Over the years, it has undergone several updates and revisions, with the latest version being Java 17. Learning Java can be a daunting task, especially for beginners who are just starting out. However, with the right resources, it is possible to learn … Read More “Java | Recommended books and resources for learning Java” »
Testing is an essential part of software development as it helps to ensure the quality of the application by detecting and resolving issues before the product reaches the end user. In Java programming, there are several testing frameworks available that help to automate the testing process and make it more efficient. Two of the most … Read More “Java | Overview of testing frameworks (JUnit, TestNG)” »
Java 12 introduced a new feature called Switch Expressions, which allows developers to use switch as an expression that returns a value, rather than just a statement. In this article, we’ll explore this new feature and see how it can be useful in Java programming. Switch expressions in Java can be written in two forms, … Read More “Java | Switch expressions” »
ava 10 introduced a new method called Collectors.toUnmodifiableList() that returns an unmodifiable List which is a view over the original List. In this article, we will explore the toUnmodifiableList() method and how it can be used in Java programming. Introduction to Collectors.toUnmodifiableList() Method The Collectors.toUnmodifiableList() method returns an unmodifiable List that is a view over … Read More “Java | Collectors.toUnmodifiableList() method” »
In Java 8, interfaces were enhanced with the addition of default and static methods. These methods were introduced to provide additional functionality to interfaces without breaking the existing code. In this article, we will discuss default and static methods in interfaces with examples. Default Methods Before Java 8, interfaces could only contain abstract methods, which … Read More “Java | Default and static methods in interfaces” »