In general, apex requires explicit conversion from one datatype to another however a few datatype can be implicitly converted like variables of lower numeric type to higher types.
Hierarchy of numbers: integer<long<double<decimal
Note: Once a value has been passed from a number of lower type to a number of higher type, the value is converted to the higher type of number.
Ex: Integer i= 2147483647 + 1; // overflow
< < Previous
Next > >
The batch is going to start shortly. Fill the form given below to Register yourself now.
Fill the form below to get a demo of this course.
Online Salesforce Development Course is soon going to be launched. Please fill the form and we will notify you about the course.