function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
shinerajbshinerajb 

What is default value of an integer in apex?

Hai,

 

 What is default value of an integer  in apex?

Best Answer chosen by Admin (Salesforce Developers) 
Navatar_DbSupNavatar_DbSup

Hi,

 

The default value is null - same for all primitives.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

All Answers

rajesh yrajesh y

Hi ,

 

It would be null

 

 

tha nks

 

Navatar_DbSupNavatar_DbSup

Hi,

 

The default value is null - same for all primitives.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

This was selected as the best answer