Karteikarten
110 Flash Cards
Karten in diesem Stapel (13)
- 1String[] argsArguments for the program start
java Driver hello world
args[0] = "hello"
args[1] = "world"
useful when you want to pass arguments into the main function - 2STRLENFinds the length of a string
- 3Malloc()allocate blocks of memory
- 4Free()Releases allocated memory
- 5private static string aids = "shez";Creates a constant string called aids that
= "shez"
Static = constant - 6Public class MyClass{ ....Defines a new class called my class
- 7void timesByTwo(int x){ ...times x by two
returns nothing (kinda useless)
unless using Global variables - 8Static Analysisgoing line by line to search for an error
- 9White box testingtesting of a program with knowledge of the inner workings of the program (knowing what the program is supposed to do)
- 10Char *a = "Shezisatwat";Address of the variable a
contains "shezisatwat"; - 11Methods of encapsulation in javaMutators and Accessors
Private and protected variables - 12Cyclomatic ComplexityComplexity =
E = Number of edges of the graph - arrows
N = number of nodes in the graph
+2 - 13STRCMPCompares 2 strings
returns either 0, 1 or -1
Informationen
- Beschreibung
- Degree Computer Science Karteikarten am 110 Flash Cards, erstellt von Alex Stout am 26/05/2016.
- Erstellt von
- Alex Stout · Mai 2016
- Aktualisiert
- 1 Jun 2016
- Aufrufe
- 12
- Bewertung