In simple words, the iterable interface is a common interface that allows us to iterate over a collection of objects. It was first introduced with the release of JDK 1.5 and made available in 'java.lang' package. The Java Collection Framework extends this interface, hence all the classes available in this collection framework by default implement the iterable interface. In other words, the classes of collection framework such as ArrayList, TreeSet, TreeMap and HashMap are iterable. This article aims to explain the iterable interface of Java along with its use case. Iterable Interface in Java The only use case exhibited ... Read More
In Java, interfaces serve two purposes pure abstraction and multiple inheritance. Generally, an interface consists of abstract methods and variables that define the behavior which a class can implement. If we create two interfaces that contain methods and variables with the same name, then interface naming conflicts may arise. However, it is not the only scenario that can cause this conflict, we are going to explore all the possible situations causing interface naming conflicts. Interface Naming Conflicts in Java Before heading to the interface naming conflicts, it is necessary to understand the abstract methods and how to create interfaces in ... Read More
Array is a linear data structure that is used to store a group of elements with similar datatypes. It stores data in a sequential manner. Once we create an array we can't change its size i.e. it is of fixed length. There are various ways to create an array named 'a[]' of type integer including 'int[] a' and 'int a[]'. But, the question that pops up here is that is there any difference between these two syntaxes and which one is preferable. Stick with us till the end of this article to find out the answer to these questions. How ... Read More
In Java, the streams allow us to perform the functional operations on the specified element. It simply channelizes the elements of source such as arrays, files and classes of collection framework, through various built-in methods to return the result. These built-in methods could be intermediate or terminal. In this article, we are going to explore some intermediate methods of Stream, such as map, filter, reduce, and collect. These methods help us to manipulate and process data. Intermediate Methods of Java Streams The methods of Java Streams are collectively called as a higher-order function, which further classified as − Intermediate ... Read More
The given three terms Spring DAO, Spring ORM and Spring JDBC, are related to Data Access in Spring Framework. This framework was developed in June 2003 by Rod Johnson and with its release, it became very famous among Java developers because of its comprehensive set of tools and features for building enterprise applications. Although these terms serve the same purpose there exist a few distinctions between them. In this article, we are going to discuss the difference between Spring DAO, Spring ORM and Spring JDBC. Spring DAO vs Spring ORM vs Spring JDBC In this section, we will introduce the ... Read More
Infrequently a SpringBoot developer may need an external configuration to define features for SpringBoot applications so that we can use the same application code in different environments. For this purpose, we can use YAML and .properties files that are used to store the required features. Despite similar functionality, there are a few distinctions between them in terms of syntax and additional features. In this article, we are going to explore what are the main differences that exist between .yml and .properties files. YAML vs Properties Files In this section, we will introduce the YAML and properties files and later, we ... Read More
What is Rufus? Rufus is a software which can be used to create bootable USB Drives. The software is available for free and can be used to install Windows 10. The app can also be used to create bootable USB drives on different operating systems. The app can also be used to format USB drives. The app can be downloaded on the system and used directly without any requirement of installation. It supports many file systems so that users do not face any issues. Price Plans of Rufus Rufus is an open-source app and is available for free. Why Rufus ... Read More
In the given problem statement we are presented with a number and we have to sum up the given number until it becomes one digit and implement the code in Javascript for getting the required sum. Understanding the Problem In the given program we will have a number and our task is to repeatedly sum its digits until the outcome of the number becomes a single digit. For example suppose we have a number like 874563 and we need to add all of its digits (8 + 7 + 4 + 5 + 6 + 3 = ... Read More
In the given problem statement we have to calculate the sum of even fibonacci numbers with the help of Javascript functionalities. So for solving this task we will use basic functionalities of the language. Understanding the Problem The problem at hand is to calculate the sum of even fibonacci numbers or items up to the given limit of the fibonacci number. As you may know, the fibonacci sequence is a series of numbers in which every number is the sum of the two previous numbers. The series usually starts from 0 and 1. So in this problem our ... Read More
In the given problem statement we have to compute the sum of all the prime numbers with the help of Javascript functionalities. So for calculating the sum we will set the upper limit of primes numbers. Understanding the Problem The problem is to calculate the sum of all the prime numbers up to a given limit. So the prime number is a positive integer which is greater than 1 and also these numbers do not have any divisors other than 1 and itself. For example we have a limit of the primes is 10, so the prime numbers ... Read More