Classes are the template through which objects are created. It is the formal blueprint for creating objects.
An object is a variable of a data type that is user defined. Every object has a state and a behavior.
A created object with defined attributes.
The data that is associated with an object or class.
The actions that can be completed by an object or class.
The use of object and class types in programming.
Used to store the state, or data of the object instances.
Allows for the creation of a new object. Consists of the constructor name and parameter list.
Necessary keyword for instantiating a new class object.
Create an instance of a class object.
Formal parameters are the parameters outlined in the parameter list in the constructor, while actual parameters are the parameters that are input when a new instance of a class object is created.
Procedures that allow us to control and define the behavior of an object.
Determines who has access to using the method when writing classes and objects.
Indicates what type value is being returned from the method
objectName.method()
The ability to use methods and programs that we do not fully understand, or are unable to write.
Methods can have multiple signatures. Java will use the correct signature based on the actual parameters used in a program.
Used to return a value back to the main program from a method.
Defines which part of the program a variable can be accessed from.
Unable to be changed or manipulated. String are immutable.
The process of adding two String values together. This creates a new String object. Primitives can be concatenated with String objects.
The automatic process of transforming a variables data type. This occurs when a primitive and String object are concatenated by changing the primitive value to a String object type.
Enable users to use special characters and actions within String objects.
Constructs a new String object that represents the same sequence of characters as str
Returns the number of characters in a String object
Returns the substring beginning at index from and ending at index to − 1
Returns substring(from, length())
A String object has index values from 0 to length – 1. Attempting to access indices outside this range will result in this error.
Returns the index of the first occurrence of str; returns -1 if not found
Returns a value < 0 if this is less than other; returns zero if this is equal to other; returns a value > 0 if this is greater than other
APIs and libraries simplify complex programming tasks by providing sets of clearly defined methods of communication among various computing components.
Documentation is the reference for how to use different methods and classes
Static methods are the methods in Java that can be called without creating an object of class. Static methods are called using the dot operator along with the class name unless they are defined in the enclosing class.
The Math class is part of the java.lang package and contains only static methods.
Returns the absolute value of an int value
Returns the absolute value of a double value
Returns the value of the first parameter raised to the power of the second parameter
Returns the positive square root of a double value
Returns a double value greater than or equal to 0.0 and less than 1.0
Can be manipulated to produce a random int or double in a defined range.
Constructs a new Integer object or a new Double Object that represents the specified int or double value
These classes are part of the java.lang package and Object class and have a number of useful methods.
The minimum/maximum value represented by an int or Integer, which are -2147483648 and 2147483647
Returns the value of this Integer as an int and this Double as a double
Automatic conversion between primitive types and their corresponding object wrapper classes
Reverse of autoboxing; automatic conversion from the wrapper class to the primitive type
A keyword that indicates a reference object doesn’t point to any object data.
When a class has more than one constructor with the same name, but different parameter lists.