BASIC JAVA Flashcards
A class that holds functions to display out in a terminal or command prompt application.
System.out
A class used to read input passed into a Java program.
Scanner
are blueprints or templates for objects in Java. They detail the general structure and data for an object including information such as properties, attributes, and method behavior
Classes
prints to the same line when a program is running.
System.out.print
in Java are objects that can hold a sequence of characters contained within a pair of double quotes (“). It is not a primitive data type.
Strings
are used whenever there’s a need to store a piece of data. A ____ contains data that can be used in the program elsewhere.
Variables
Using ___ also ensures code re-usability since it can be used to replace the same value in multiple places.
Variables
To declare a variable in Java, any of these three keywords can be used along with a variable name:
The data type.
The variable name.
The value.
Are the ones that are declared within a method or a block of code and are only accessible within that scope:
Local Variables
Are the ones that are declared within a class but outside the scope of a method. Each instance of the class includes a unique version of the variable:
Instance Variables
Are the ones that belong to a class rather than its instances. In the case of these variables, only one copy is created in a class and distributed among all instances of that particular class:
Static Variables