COMP 1451 Flashcards
What are libraries?
Set of dynamically loadable libraries that java can call at runtime - provide set of known facilities, abstract interface to tasks that such as network access that are typically resource heavy on operating system
What do you need to know when looking up new classes in Java libraries?
You need to know the interface not the implemetnation
What are Maps?
collections that contain pairs of values of which one is a key and one is value
Should fields be private?
Heck yes, they should never be public pretty much
What is encapsualtion?
encapsulation is wrapping code and data together in a single unit. Fully encapsulated objects will have all data members set to private
What is Coupling?
The degree of direct knowledge that one element has of another or how much a change in A forces change in B
Cohesion - what it is?
The degree to which a Class has a single purpose. The more cohesive a Class is the easier to it is to maintain and re-use
What is refactoring?
Making a bucnh of small changes to code without changing what it does
What is regression testing?
egression testing involves re-running test, Use of a test rig or test harness can relieve some of the burden.
What is a test harness?
A test class designed to replaces human activity
What is method polymorphism?
Overloading a constructor
What is Dynamic method lookup?
The process of determining which method signature is denoted at runtime
What is a static reference
A declared type of reference
What a dynamic reference is?
The type of the object a reference points to
What does a compiler do?
check for static type violations