A class defines a type and is used to define what all objects of that class know and can do.
2
New cards
Compiler
Software that translates the Java source code (ends in .java) into the Java class file (ends in .class).
3
New cards
Compile time error
An error that is found during the compilation. These are also called syntax errors.
4
New cards
Constructor
Used to initialize fields in a newly created object.
5
New cards
Field
A field holds data or a property - what an object knows or keeps track of.
6
New cards
Java
A programming language that you can use to tell a computer what to do.
7
New cards
Main Method
Where execution starts in a Java program.
8
New cards
Method
Defines behavior - what an object can do.
9
New cards
Object
Objects do the actual work in an object-oriented program.
10
New cards
Syntax Error
A syntax error is an error in the specification of the program.
11
New cards
class
used to define a new class
12
New cards
public
a visibility keyword which is used to control the classes that have access. The keyword public means the code in any class has direct access.
13
New cards
private
a visibility keyword which is used to control the classes that have access. The keyword private means that only the code in the current class has direct access.