Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
9 Cards in this Set
- Front
- Back
Single line comment |
// comment until end of line |
|
Multiple line comment |
/*Multiple *line comment */ |
|
Rules for classes and files |
1. two classes can go into one file but if ones public, the file name needs to be same as public class ■ Each file can contain only one class. ■ The filename must match the class name, including case, and have a .java extension. |
|
main() Method |
public static void main(String[ ] args) public static void main(String... args) public static void main(String args [ ]) |
|
Compile and execute code on console |
javac <-- Compile (results in a bytecode file) java <--- run and execute |
|
Constructor rules
|
1. the name of the constructormatches the name of the class, and there’s no return type. |
|
Order of initialization |
* Fields and instance initializer blocks are run in the order in which they appear inthe file. * The constructor runs after all fields and instance initializer blocks have run. |
|
byte |
Not Necessary - 8 bit NTK -128 to 127 |
|
De |
, |