Vivek Verma has Published 113 Articles

How To Find Volume of the Octahedron in Java?

Vivek Verma

Vivek Verma

Updated on 13-Jun-2025 12:38:19

185 Views

An octahedron is a three-dimensional (3D) shape which has eight plane faces. In other words, a polyhedron is called an octahedron which has eight faces, twelve edges, and 6 vertices. A polygonal is a three-dimensional figure with flat polygonal faces, straight edges, and sharp corners or vertices. The word octahedron ... Read More

How To Check Whether a Number is a Keith Number or Not in Java?

Vivek Verma

Vivek Verma

Updated on 13-Jun-2025 12:37:22

3K+ Views

What is Keith Number? A number is said to be a Keith number if it is arranged with a special sequence of numbers, which are initially created by its digits. The number sequence will be generated by adding its previous numbers till the number exceeds the input number. The results ... Read More

How To Find Volume of Dodecahedron in Java?

Vivek Verma

Vivek Verma

Updated on 13-Jun-2025 12:33:15

254 Views

A dodecahedron is a three-dimensional shape that has twelve flat faces. It is derived from two Greek words, i.e., 'dodeka', which means 12, and 'hedra', which means face. In other words, a dodecahedron is a special type of polyhedron that has 12 faces. To make a dodecahedron, you can use ... Read More

How To Check Whether a Number is a Goldbach Number or Not in Java?

Vivek Verma

Vivek Verma

Updated on 13-Jun-2025 12:26:57

4K+ Views

What is Goldbach Number? A number is said to be a Goldbach number if the number can be expressed as the addition of two odd prime number pairs. For example, let's consider the number 98 and find the pairs of prime numbers (19, 79). If you calculate the sum of 19 + 79, you ... Read More

When can a double-type be preferred over float-type in Java?

Vivek Verma

Vivek Verma

Updated on 13-Jun-2025 12:18:09

313 Views

In Java, both double and float are data types that are used to declare a variable that can store only decimal values or floating point numbers. For example: 1.2343, 3.343, 24.321234, etc. The double data type is larger in size compared to the float data type. When to Prefer Double Type ... Read More

How to Check Whether a Number is a Triangular Number or Not in Java?

Vivek Verma

Vivek Verma

Updated on 13-Jun-2025 12:16:58

4K+ Views

A Triangular number of a natural number n, which is defined as the sum of all natural numbers starting from 1 to n. It is called triangular as we can represent it in the form of an equilateral triangular grid by using the total number of points where the row ... Read More

How To Check Whether a Number is an Empire Number or Not in Java?

Vivek Verma

Vivek Verma

Updated on 13-Jun-2025 12:08:36

428 Views

What is Empire Number? A number is said to be an Empire number if it is a prime number, and when we reverse that number, we should get another prime number. For example, let's consider the number 17. We know that 17 is a prime number, and if we reverse ... Read More

How To Check if a Given Point Lies Inside a Rectangle in Java?

Vivek Verma

Vivek Verma

Updated on 13-Jun-2025 12:08:27

3K+ Views

A Rectangle is a closed two-dimensional shape that has 4 sides and 4 corners. The opposite sides are of the same length and parallel to each other. All 4 interior angles are equal, angles measure 90 degrees. It is a four-sided polygon. Following is the diagram of the Rectangle: ... Read More

How To Get the Arc Length from Given Angle in Java?

Vivek Verma

Vivek Verma

Updated on 10-Jun-2025 18:22:52

526 Views

An arc of a circle is a segment or portion of the circumference of a circle. In other words, a curve between a pair of distinct points. The length of the arc refers to the length between two points along the arc (two points along a section of a circle ... Read More

How To Find the Length of Hypotenuse in Java?

Vivek Verma

Vivek Verma

Updated on 10-Jun-2025 12:16:51

2K+ Views

Hypotenuse refers to the longest side, which is opposite to the right angle of a right-angled triangle. Following is the diagram of the Hypotenuse: Length of the Hypotenuse The length of the hypotenuse can be calculated using the Pythagorean theorem. According to it, the sum of the squares of ... Read More

Advertisements