Basic Concepts Flashcards
a collection of statements that are grouped together to perform an operation (also called a function)
method
belong to the class instead of a specific instance
static
the method that is the starting point for all Java programs
main
public static void main(String[ ] args)
what method is this?
main method
each object is called a(n) __________ of a class
instance
indicates that a method does not return a value
void
a collection of variables of the same type
array
prints a line of text to the screen
System.out.println()
In Java, each code statement must end with this (Remember: Do not use these after method and class declarations that follow with the body defined using the curly braces)
semicolon
single line comment
//
multiline comment
/* */
documentation comments (Javadoc)
/** */
a tool which comes with JDK and it is used for generating Java code documentation in HTML format from Java source code which has required documentation in a predefined format
javadoc
a _____ is given a name (or identifier), such as area, age, height, and the like.
variable
use to declare an integer variable
int