Unit 1 Flashcards
Naming convention of a class
Upper camel case “ BonJour”
Writing convention of an interface
uppercase start and should be an adjective “Adjective”
Writing convention of a method
lower camel case “bonJour”
Writing convention of a variable
lower camel case “bonJour”
Writing convention of a camel case
all lowcase “mypack”
Writing convention of constants
ALL CAPS “BONJOUR”
What is main
a method
What is public
Access specifier (control the visibility)
What is static
To call main w/o instantiating
void?
Return type
args
name chosen for this String array
What is the range of a byte
-128 ~ 127
What happens when you pass the limit of a datatype
For into it either creates an over flow or an underflow where it goes to the maximum or or minimum number
int i=5;
int j=i++;
int g=5;
int k=++g;
j=i then i+1
g=g+1 then new g=k
True or False: Java gives a warning whenever a variable isn’t used.
True, not an error warning.