• Create Account

### #Actualdemongunsman

Posted 02 February 2013 - 09:10 PM

When declaring a variable why should I use this:

int a = new int();

rather than:

int a;

I apologize if it is syntactically incorrect, but if you get the drift of what I am trying to ask, please let me know. Is it because of the way the variable or the value in the variable is stored in the memory? Maybe it makes it more efficient?

### #2demongunsman

Posted 02 February 2013 - 09:08 PM

When declaring a variable why should I use this:

int a = new int();

rather than:

int a;

I apologize if it is syntactically incorrect, but if you get the drift of what I am trying to ask, please let me know.

### #1demongunsman

Posted 02 February 2013 - 09:05 PM

When declaring a variable why should I use this:

int a = new int();

rather than:

int a;

I apologize if it is syntactically incorrect, but if you get the drift of what I am trying to ask, please let me know.

PARTNERS