Candibiotic
News Update :

English Premier League

Bundesliga

La Liga

Showing posts with label Using a Variable or Array Element That Is Uninitialized and Unassigned. Show all posts
Showing posts with label Using a Variable or Array Element That Is Uninitialized and Unassigned. Show all posts

Using a Variable or Array Element That Is Uninitialized and Unassigned

Friday, August 21, 2009

When an array of objects is instantiated, objects within the array are not instantiated automatically, but all the references get the default value of null.
When an array of primitives is instantiated, elements get default values.
Instance variables are always initialized with a default value.
qLocal/automatic/method variables are never given a default value. If you attempt to use one before initializing it, you'll get a compiler error

Football News

 

© Copyright Vinayak Wins 2010 -2011 | Design by Herdiansyah Hamzah | Published by Borneo Templates | Powered by Blogger.com.