Term
|
Definition
Methods which are invoked to create a new object. Do not have a return type (not even void). |
|
|
Term
|
Definition
Store values for the variables in a common memory location, so if one object changes the value of a static variable, all objects of the same class are affected. Use if you want all the instances of a class to share data. |
|
|
Term
|
Definition
Can be called without creating an instance of the class. |
|
|
Term
|
Definition
Are shared by all objects of the class and should be declared final static. |
|
|
Term
|
Definition
makes methods and data fields accessible only from within its own class. Only applies to members of a class, not classes themselves. |
|
|
Term
|
Definition
Declaring the data fields private (using the private modifier) in order to prevent direct modifications of the data fields. |
|
|
Term
|
Definition
To make a private data field accessible provide a get method to return its value. public static |
|
|
Term
|
Definition
To enable a private data field to be updated provide a set method to set a new value. public void |
|
|
Term
|
Definition
A string object whose contents cannot be changed. |
|
|
Term
|
Definition
When two strings with different names have the same contents. |
|
|
Term
Conversion between Strings and Arrays |
|
Definition
char[] chars = "String".toCharArray(); |
|
|
Term
Converting Characters and Numbers to Strings |
|
Definition
|
|
Term
|
Definition
Circle[] circleArray = new Circle[10]; for loop { circleArray[i] = new Circle(); |
|
|
Term
StringBuilder/StringBuffer |
|
Definition
Exactly like a String except you can add insert, or append new contents into them. |
|
|
Term
|
Definition
An object whose contents cannot be changed once it's created. |
|
|
Term
|
Definition
All data fields must be private, no mutator methods, no accessor method that returns a reference to a data field that is mutable. |
|
|