Java View all facts Glossary Help |
| object > array > array of numbers |
| array of numbers | ||||
| subject | fact | |||
| array of numbers | is a subtopic of Arrays | ![]() |
| is initialized automatically so that every element has the value 0 | ![]() | |
| is a kind of array | ![]() | |
| array | can be composed of primitive types or instances of classes ![]() | ![]() |
has a fixed size ![]() ![]() | ![]() | |
has a mechanism for preventing access outside the bounds of the array ![]() ![]() | ![]() | |
has a type which is the type of every data item in the array ![]() ![]() | ![]() | |
has example //the following sums all the elements of an integer array: | ![]() | |
has example of creation //Create an array called numbers containing 4 integers | ![]() | |
has length stored in the instance variable ![]() | ![]() | |
is more efficient than specialized collection classes ![]() | ![]() | |
is object-like but is not a true instance of a class ![]() | ![]() | |
is zero-based which means the first element is element 0 ![]() | ![]() | |
| is created using the new operator | ![]() | |
| is declared using an array declaration | ![]() | |
| is initialized to default values if it is created using new | ![]() | |
is not an instance of a class which you can subclass or for which you can write your own code ![]() | ![]() | |
should be avoided if you do not know beforehand the number of items it will contain ![]() | ![]() | |
should not be used to manipulate collections of objects ![]() | ![]() | |
| object | when an object is created
| ![]() |
![]() | ||
| ![]() | |
![]() | ||
| can access all instance variables of all objects of its class | ![]() | |
can be converted into a string using the toString method ![]() | ![]() | |
can be referred to without reference to the instance variables contained in it ![]() | ![]() | |
can be referred to by several different variables at the same time ![]() | ![]() | |
| can communicate with every object to which it has access through its public interface | ![]() | |
can convert itself to a string representation using the toString method ![]() | ![]() | |
can model ![]() | ![]() | |
| can notify other objects that a condition variable has changed | ![]() | |
can receive messages from
![]() | ![]() | |
can represent any entity to which you can associate properties and behaviour ![]() | ![]() | |
| can return its class using the getClass method | ![]() | |
can send messages to
![]() | ![]() | |
| can wait on 0 or more condition variables | ![]() | |
communicates with other objects by sending and receiving messages ![]() | ![]() | |
| has part public interface | ![]() | |
| hides methods from other objects using the 'private' keyword | ![]() | |
| inherits instance methods and instance variables from | ![]() | |
is created by
| ![]() | |
| shares every instance method of its class with the other instances of its class | ![]() | |
| shares its implementation with other instances of its class | ![]() | |
shares one copy of each class variable of its class with the other instances of its class ![]() | ![]() | |
| to create you use the new operator | ![]() |
Next array: multidimensional array Up: array