Web Log di Adrian Florea

"You know you've achieved perfection in design, not when you have nothing more to add, but when you have nothing more to take away." Antoine de Saint-Exupery
posts - 440, comments - 2715, trackbacks - 3944

My Links

Archives

Post Categories

Image Galleries

.RO Blogs

.RO People

.RO Sites

Blogs

Furls

Links

vinCitori

08 in C# e Java

In C#, "integer literals have two possible forms: decimal and hexadecimal" (9.4.4.2) ma in Java "an integer literal may be expressed in decimal, hexadecimal, or octal" (3.10.1). 

Per questo, 08 in C# è 8, mentre in Java si ottiene errore di compilazione "integer number too large" (il prefisso del literal di un intero in base 8 in Java è 0).

Post da ragazzini, lo so, però l'ho postato per distanziarmi da Corrado solo di 99 post... :-)

Print | posted on martedì 14 settembre 2004 16:19 | Filed Under [ Carillon .NET ]

Powered by:
Powered By Subtext Powered By ASP.NET