Posts from Java

Shadowing of static methods in Java

By Ranjeet V

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

Multiple inheritance using interfaces in Java

By Ranjeet V

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

nth Catalan Number in Java

By Ranjeet V

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

Blank Final variable in Java with examples

By Ranjeet V

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

Creating our own packages in Java with example

By Ranjeet V

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

How to implement Iterator and Iterable Interface in Java

By Siddharth Raja

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

Check if a string is a number in Java

By Harsh Gupta

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

java.lang.Long.lowestOneBit() method with examples

By Abhishek Kaushik

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