• Articles

Java program to print Fibonacci series

4 years ago

The program prints Fibonacci Series as the output . The functionality can be achieved in two ways by simply using a loop or recursion. Lets… Read More

  • Articles

Java Program to Find Duplicate Words And Their Occurrences in String With or Without Using Map

4 years ago

The program prints repeated words with number of occurrences in a given string using Map or without Map. It first creates an array from given… Read More

  • Articles

What are The Ways to Create Thread in Java ?

4 years ago

As we know, whenever a Java program executes, a thread is created automatically which is coined as Main thread. The main thread is responsible for… Read More

  • Articles

How are Java Objects Stored in Memory?

4 years ago

Class is a user-defined data type which is naturally used to declare objects of that type. So, an object is a real-world entity, having a… Read More

  • Articles

Java Program to Swap Two Numbers

4 years ago

The Java program swaps two numbers. There are two approaches to achieve this functionality, the first is using a temporary variable and the other is… Read More

  • Articles

What is Java Stream ? Explain with Examples

4 years ago

What is a Stream in Java 8? Another Java 8 important feature, it can be defined as a pipeline through which a collection of objects… Read More

  • Articles

ForEach in Java 8 with Example

4 years ago

In Java 8, forEach is introduced that provides an efficient way to iterate through collections ( List, Sets, and more) and Streams. In Collection hierarchy,… Read More

  • Articles

What is Optional class in Java 8

4 years ago

Another feature that Java 8 brought is Optional Class that is capable of representing null or non-null values. It can be defined asĀ  container object… Read More

  • Articles

Static methods & Default Methods in Java 8

4 years ago

An interface describes what a class should look like but not describe how, closely related to class but can't be instantiated. Before Java 8. Java… Read More

  • Articles

Predefined Functional Interface in Java 8

4 years ago

Java provides a bunch of predefined functional interfaces that come under java.util.function package. Each and every predefined functional interface has its own characteristics. Some of… Read More