TLE Flashcards
Class
A blueprint to create objects. Defines common variables
Object
An instance of a class.
Method
A group of instructions to do a specific task
Calling a method
Is basically using the method.
Semi colon
Calling a method is a statement on java so each statement ends with a semicolon
Main() method
The main() method is automatically called when we run our java program. It is the starting point of execution of our program. Composed of string arguments.
Access Modifiers
Keywords that specify how to access classes and methods.
What is a naming convention? Specify the types.
Naming conventions specify how to write names in programming.
- Pascal Case Convention: First letter of each word is in capital.
- Camel Case Convention: First letter of first word is small and the first letters of the second or other words are capitals. Used when naming variables and methods.
- Snake Case Convention: Put an underscore between each words, all letters are in small.
TO REMEMBER!
- Every java program contains at least one class.
- Pascal case convention is used with classes.
- Camel case convention is used with methods.
- A method exists inside a class.
Package
A container for classes.
Scanner class/ Scanner
Allows us to read input from the keyboard. To read data.
Input methods
Used to read specific types of data from the keyboard.
Comments
Add notes within program. Example is Programmer to date coded.
Import scanner
To have a scanner in a program.
String
It is a data type. It is the type of info you save. It is a reference data type. Example, fname is a string declaration.
New
Used in telling the compiler to create an object from the specified class.
Public
Modifier that indicates a class, method, or class variable can be accessed by any object or method directly.
identifiers
User defined names for methods, variables, constants, classes. Names that identify the elements in a program.
Constants
Identifiers whose values never change once declared.
Casting
Process of assigning a value or variable of a specific type to a variable of another type.
Concatenation
Process of joining values together.
Literals
Constant values assigned to variables or constants.
Variables
Used to store values in our computer’s memory.