The different types of data types available in APEX language are Primitive Data Type (Integer, Long, Double, Date, DateTime, ID, or Boolean and String), Collections (Lists, Maps, and Sets) and Enum Classes, Interfaces and Objects. The Primitive data type Integer can be any value of a 32-bit number and will have some range similar to that of Java programming language. A Boolean data type will have a true and false value. The Date data type can only store the date value but not the time. The Primitive data type Long can be any value of a 64-bit number and will have some range similar to that of
Java programming language. The String data type is a set of characters that will be initialized within single quotes. The data type Blob also exists which stores a binary set of data. Enum is an abstract kind of data type.