Flashcards
Definitionen von Fachbegriffen
Flashcards do conjunto (26)
- 1Software EngineeringWell-written code that can be understood and edited by others for maintenance
that includes a clear code and good comments - 2Compiler vs InterpreterCompiler translates code in machine code
Interpreter translates into intermediate language - 3TermEverything that can either hold or produce a value (variable, method, constant, paranthesized expression)
- 4AssigmentAssigns a value:
The variable on the left will become whatever value is represented on the right - 5expression statementsExpression:
Everything with an operator and operands
Expression statement:
Add a semicolon to the end of the expression - 6ScopeThe visibility of the variable.
local variables are only visible inside the block statement they were declared in. - 7Dangling Else ProblemWhen encapsulating of if statements without breakets, it leaves confusion which else belongs to which if clause
- 8MethodA sequence of statements that are inside a blockstatement and have a name to be able to call it. May need parameters and may return something. Defined for a class.
- 94 things the class body containsMethods, constructer, instance variables, constants
- 10lokal variables instance variables class variables1. local to the method
2. associated with the object
3. associated with class - 11Was bedeuten &, |, ~ , ˆ für Integers?This are bitwise operations:
bitwise AND
bitwise OR
NOT
XOR - 12recrusionA method using itself to solve a problem
- 13Character arithmeticCharacter in Unicode representation
- 14Debugging StrategieDebugger, Unit test, assertions, println
- 15Exception handlingWith the try/ catch block
- 16Difference between an object and classClass: A collection on methods and a constructor to create objects, which are instances of the class
- 17Array declarationtype[] identifier = new type[ length ];
- 18Properties of an arrayHomogenous (all elements have to have the same type of data) and ordered
- 19Regions of memoryStack: local variables, references to the heap, parameter
Heap: Objects, instance variables
static: static data, program code, constants - 20Expression evaluation1. Precedence
2. Associativity
3. Direction (Left to right) - 21MVC PatternModel, View, Contoller:
The User inputs data through the Controller and seees output through View. - 22Assertion useOnly for programmer not for user input.
Exceptions control user input - 23Java Collections Framework 3 data structures1. Lists
2. Sets
3. Maps - 24Programming errorsSyntax and Bugs
- 25Class hierarchyYou can extend a superclass.
The subclass inherrites all the methods and constructors from its superclass - 26—