Variable Type | Default Value |
Object reference | null (not referencing any object) |
byte, short, int, long | 0 |
float, double | 0.0 |
boolean | false |
char | '\u0000' |
Saturday, April 16, 2011
Default Values for Primitives and Refrence Types in Java
Subscribe to:
Post Comments (Atom)
Java, JavaScript, HTML, XHTML, AJAX, CSS, etc.
No comments:
Post a Comment