Java basic data corresponding to the package class
Everything is class based in Java, and Java is encapsulating the basic data types, as shown below, introducing several basic data types and their encapsulated classes:
1 Boolean VS Boolean public final class Boolean extends implements, <>
The Boolean class wraps the value of the base type Boolean into an object. A Boolean object contains only one field with a Boolean type.
In addition, this class provides a number of methods for Boolean and String conversions, and provides some other constants and methods that are useful when dealing with Boolean.
2 byte VS byte public final class Byte extends implements <>
The byte class wraps the value of the base type byte into an object. An object of type byte contains only one field of type Byte.
In addition, the class provides several methods for the conversion of byte and String, and provides some other constants and methods that are useful for handling byte.
3 Character VS Char Public final class Character extends implements, <>
The Character class wraps a value of the base type char in the object. An object of type Character contains a single field of type Char.
In addition, the class provides several ways to determine the category of characters (lowercase letters, numbers, and so on) and convert the characters from uppercase to lowercase, and vice versa.
4 Double VS double public final class Double extends implements <>
The double class wraps the value of a base type double in the object. Objects of each double type contain a double type of field.
In addition, the class provides several methods that convert a double to a string, a string to double, and other constants and methods that are useful when you are working with double.
5 Float VS Float Public final class float extends implements <>
The float class wraps the value of a float base type in the object. Objects of float type contain a float-type field.
In addition, this class provides several methods for converting between float and String types, and also provides some other constants and methods that are useful for handling float types.
6 integer VS int public final class Integer extends implements <>
The Integer class wraps a value of the base type int in the object. An object of type Integer contains a field of type int.
In addition, the class provides several methods for converting between type int and String, as well as other constants and methods that are useful when dealing with int types.
7 Long VS Long public final class long extends implements <>
The long class encapsulates the value of the base type long in the object. Each long type of object contains a long type of field.
In addition, the class provides several methods that convert a long to a string and a string to a long, in addition to other constants and methods that are useful when dealing with a long.
8 Short VS Short public final class short extends implements <>
The short class wraps the value of the base type short in the object. A short type of object contains only a field of type short.
In addition, the class provides several methods that convert short to string, convert String to short, and provide additional processing short Constants and methods useful in .