Check out example codes for "variable not initialized in ajva". It will help you in understanding the concepts better.

Code Example 1

int i; //declaration
i = 10; //initialization
int x = 10; //initialization + declaration

Learn ReactJs, React Native from akashmittal.com