Basic Definitions Flashcards
Operator
Operators are symbols that tell the compiler to perform specific mathematical or logical manipulations
Or
A symbol that defines the type of calculation to perform, and the order in which to do it
Algorithm
A set of step by step instructions used to solve a problem
Pseudocode
Pseudocode is a detailed, human-readable description of what an algorithm must do expressed in natural language.
Function
A system defined formula that may require user input and returns a value.
Also defined as action taken by the code
Condition
Conditions are branches that direct the code.
Boolean Expression
A question that has a true/false or yes/no answer.
Loop
A loop is an instruction that repeats until a specified condition is reached
Variable
Variables store data for processing. In java, each class has certain class variables (its attributes) such as name, age, dob.
E.g.= int (234)
String (“hey bro”)
Double (2.44)
You can declare a variable and assign it a type, such as:
String name:(“david”);
Threads
Getting the computer to do multiple things at once
String
A string is 0 or more characters in double quotes, like “hello, world” 0/
Array
A collection of variables of the same type
Method
Aka functions. Called methods in Java
Main
A function that is the starting point of every class in Java
The main method
Public Static Main Void (String [] args)
Public means anyone/any class can access Static means it can run without an instance of class Main is the name of class Void means no value will be returned
Instance
Each object is called an instance of a class