data types
-
Core Java
Convert Between Double and Float in Java
Java offers two primary data types for representing floating-point numbers: double and float. But what exactly are they, and when…
Read More » -
Core Java
Converting from float to BigDecimal in Java
Java provides several ways to convert a float value to a BigDecimal object. When performing this conversion, precision is often…
Read More » -
Core Java
Java Programming Basics
1. Introduction Java is a high-level, general-purpose, object-oriented, and secure programming language developed by James Gosling at Sun Microsystems, Inc.…
Read More » -
primitives
short
In this example we shall show you how to use a short type in Java. The short data type is a…
Read More » -
primitives
long
With this example we are going to demonstrate how to use a long type in Java. The long data type…
Read More » - primitives
-
primitives
float
In this example we shall show you how to use a float type in Java. The float data type is a…
Read More » -
primitives
double
With this example we are going to demonstrate how to use a double type in Java. The double data type…
Read More » -
primitives
char
This is an example of how to use a char type in Java. The char data type is a single…
Read More » -
primitives
byte
In this example we shall show you how to use a byte type in Java. The byte data type is…
Read More »
- 1
- 2