In this post, we will discuss the shadowing of static methods in Java. Suppose, we have two classes such that one of them is child class and another is parent class. Now, if a func.... Read More
In object-oriented programming, multiple inheritance is the property, where a class inherits properties of more than one class. Java does not support multiple inheritance through c.... Read More
Catalan numbers are used in many mathematical problems. These are a sequence of numbers. The first few Catalan numbers can be given as: 1, 1, 2, 5, 14, 42, 132, 429, 1430, and so o.... Read More
When a variable is declared as final, it can be assigned a value only once and cannot be updated or changed. A blank final variable in Java is a final variable which is not assigne.... Read More
This tutorial is about creating our own package in Java. First, let us understand, What are the packages? A package is a collection of different classes, sub-packages and interface.... Read More
In this tutorial, we will learn about iterator and iterable interfaces in Java along with example programs. Java iterator is available since Java 1.2 collection framework. Whereas .... Read More
There are several ways to check whether the entered string is a number or not in Java program. Here I have mentioned three methods to do so. METHOD-1: We can parse String to Double.... Read More
Hello Friends, in this tutorial we look at an inbuilt method java.lang.Long.lowestOneBit() in Java. Here we talk about, what is the parameter, what it takes, what it returns and ho.... Read More