instantiate : Java Glossary

go to home page I words local find full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all) ©1996-2009 Roedy Green, Canadian Mind Products
instantiate
The keyword "new" will allocate some RAM and create a new object for you and initialise all its fields to zeros/nulls. The code in the various constructors then initialises the fields. This process of creating an object is called instantiation. When a method starts executing, all the local/temporary variables for that entire method (all embedded blocks too) are allocated slots on the stack. It does not wait until you actually enter a block. These local variables are not automatically initialised. Though the process is similar, the allocation of ram space for local variables is not usually referred to as instantiation. Methods other than constructors may return a newly minted object. The creation with new inside such a method is called instantiation, but you would not normally say that the method as a whole instantiated an object.

CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/instantiate.html J:\mindprod\jgloss\instantiate.html
CMP logofeedback Please email your feedback for publication, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.191.105]
You are visitor number 39,468.