1/28
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
When was Java first implemented?
1995
What company made Java?
Sun Microsystems
What is the first name that java initially have?
Oak
What should you type in Command Prompt (cmd) to check if your system has Java already installed?
C:\Users\Your Name>java -version
TRUE OR FALSE: Identifiers Should begin with a letter (A to Z or a to z), currency character ($) or a hyphen (-)
FALSE: underscore (_) not hyphen (-)
naming convention has its first word lower case and all succeeding words have uppercase as their first letter? (ex: newMainWindow)
camelCase
ACCESS MODIFIERS
protected
private
public
default
NON-ACCESS MODIFIERS
abstract
final
strictfp
PRIMITIVE VARIABLES
byte
char
long
int
double
short
boolean
float
WORA
Write Once, Run Anywhere
released as free and open-source software under the terms of the GNU General Public License (GPL)
November 13, 2006
have states and behaviors
Object
can be defined as a template/ blueprint that describes the behaviors/states that object of its type support.
Class
owned by a class
Method
For all class names the first letter should be in
Upper Case
All method names should start with
Lower Case
TRUE OR FALSE Name of the program file should exactly match the class name
TRUE
a variable that points to an object of a given class, letting you access the value of an object. An object is a compound data structure that holds values that you can manipulate.
Reference Variable
Animal Dog = new Animal ();
Reference Variable
are objects that store multiple variables of the same type.
Array
a special "class" that represents a group of constants (unchangeable variables, like final variables).
enum
start with two forward slashes (//)
Single Line Comments
start with /* and ends with */
Multiline Comments
as a contract between objects on how to communicate with each other.
Interface
initializes an object when it is created. It has the same name as its class and is syntactically like a method.
Constructor
does not accept any parameters
No Argument Constructor
Parameters are added to a constructor in the same way that they are added to a method, just declare them inside the parentheses after the constructor's name
Parameterizes Constructor
a source code representation of a fixed value. They are represented directly in the code without any computation
Literal