Birat Rai
1 min readMay 14, 2018

--

Hi Ramneek, as long as it is declared primitive there won’t be any object creation in Java. As for long sum it will get the default value of 0L, we don’t even have to assign it. It was assigned for easier understanding.

--

--

Birat Rai
Birat Rai

No responses yet