Home > DeveloperSection > Interviews > What is the difference between Assignment and Initialization?

Posted on    October-25-2010 12:00 AM

 Java Java 
Ratings:
 1 Answer(s)
  4365  View(s)
Rate this:

Amit Singh

Total Post:565

Points:2825
Posted on    October-30-2010 12:00 AM

Assignment can be done as many times as desired where as 
initialization can be done only once.
for example
initialize the value:
int i;
i=0;
Assignment
i=i i;

Don't want to miss updates? Please click the below button!

Follow MindStick