André Asantos wrote:Should not that print their default value?
Local variables inside methods, as you show in your example, do not have default values. You must initialize them to a value before you use them.
Only member variables (at the level of a class) are initialized with default values (0L in the case of a long).