Birat Rai·Follow1 min read·May 14, 2018--ListenShareHi 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.