+ 2

"new int()" or "= 0"?

What is better to use: int val = new int() or int val = 0?

31st Dec 2017, 1:17 PM
Xeight Bive
Xeight Bive - avatar
1 Answer
+ 1
What is the context? To be honest there isn't much practical difference. "Int val = 0;" should be fine.
31st Dec 2017, 1:22 PM
josh mizzi
josh mizzi - avatar