This template defines a new data type with attributes and behaviors
What is a class?
This keyword specifies that a method or variable belongs to a class itself
What is "static"?
This keyword indicates that a variable refers to no object
What is "null"?
This method returns the absolute value of a number
What is int abs(int x) or double abs(double x) ?
This method returns the number of characters in a String object
What is int length() ?
This keyword is used to create objects
What is "new"?
This operator is used to access a specific method or variable of a class or object
What is the dot (.) operator?
This special method creates new objects and initializes its attributes
What is a constructor?
This method returns the non-negative square root of a number
What is double sqrt(double x) ?
This method returns the index of the first occurrence of a String or -1 if not found
What is int indexOf(String str) ?
This data is passed to a method inside the parentheses in the method call
What are parameters (arguments)?
This type of method does not have a return value and cannot be called as part of an expression
What is a void method?
A non-primitive variable holds this, which can be thought of as the memory address of that object
What is a reference?
This method returns the value of the first number raised to the power of the second number
What is double pow(double base, double exponent) ?
This method has TWO versions that return a part of the original String based on the index(es)
What is String substring(int from, int to) and String substring(int from) ?
Once this type of object is created, it cannot be changed
What is immutable?
These methods have the same name but different parameter lists
What is overloading or overloaded methods?
This error is caused by a method call on a null reference
What is a NullPointerException?
This method returns a double value greater than or equal to 0.0 and less than 1.0
What is double random() ?
This method returns true if this String corresponds to the same sequence of characters as the other, or false if not
What is boolean equals(Object other) ?
All classes in Java are subclasses of this class
What is Object?
This Java package contains classes like String and Math that are available by default
What is java.lang?
This property in Java means that the parameters in method calls are initialized with copies of the arguments
What is call by value?
This formula generates a random integer that is INCLUSIVE of both min and max
What is (int)(Math.random() * (max − min + 1)) + min ?
The method int compareTo(String other) can return these THREE possibilities based on this String and the other String
What is a negative value if this < other, zero if equal, or a positive value if this > other?