You are on page 1of 1

What are Data Types?

Data types determine the type of data that any variable can store. Variables belonging to different data types are allocated different amounts of space
in the memory. There are various data types in VB.NET. They include:

 Boolean: the allocated storage depends on the platform of implementation. Its value can be either True or False.
 Byte: allocated storage space of 1 byte. Values range from 0 to 255 (unsigned).
 Char: allocated a space of 2 bytes. Values range from 0 to 65535 (unsigned).
 Date: allocated storage space of 8 bytes. Values range from 0:00:00 (midnight) January 1, 0001 to 11:59:59 PM of December 31, 9999.
 Integer: has a storage space of 4 bytes. Values range between -2,147,483,648 to 2,147,483,647 (signed).
 Long: has a storage space of 8 bytes. Numbers range from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807(signed).
 String: The storage space allocated depends on the platform of implementation. Values range from 0 to about 2 billion Unicode characters.

You might also like