DOC PREVIEW
UMD CMSC 433 - Midterm Review

This preview shows page 1-2-3-4 out of 12 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CMSC 433 midterm reviewOct 23rd, 2007Check out old 433 exams• Follow exams link from course webpage• previous offerings don't cover the samematerial– if you see a question on material we didn'tcover, ignore it• it isn't relevant to your midterm preparationTesting• JUnit• Mock Objects• Code coverage– statement, branch coverageTCP Sockets, HTTP• ServerSockets, Sockets• HTTPGenericsgiven a non-generic Stack class:– class Stack { int top = -1; Object a[]; Stack(int maxCap) { a = new Object[maxCap]; } Object pop() { Object r = a[top]; a[top--] = null; return r; } void push(Object e) { a[++top] = e; } }• modify it to be a Stack<E>Bounded Wildcards inGenerics• What is the difference between definingsomething as:– Collection<?> c– Collection<Object> c– Collection<? extends E>– Collection<? super E>• Where/when might these be used (e.g.,method parameters, return values)• See "Effective Java Reloaded" slidesBounded type variables• If you need a type that is bound andoccurs in more than one place: <T extends Number> T sum(List<T> x) { ... }Source code version controlDesign patterns• Observer• Decorator• Adapter• VisitorConcurrency andSynchronization• synchronized• wait/notifyAll• java.util.concurrent.**– ReentraintLock– Lock (lock, unlock, tryLock, ...)– Condition (await, signal, signalAll)Concurrency bugs• Data races• atomicity failures• DeadlockGuarding againstconcurrency bugs• Documenting concurrency– GuardedBy annotation•


View Full Document

UMD CMSC 433 - Midterm Review

Documents in this Course
Trace 1

Trace 1

62 pages

Reflection

Reflection

137 pages

Testing

Testing

25 pages

Paradigms

Paradigms

10 pages

Testing

Testing

17 pages

Java RMI

Java RMI

17 pages

Java RMI

Java RMI

17 pages

Java RMI

Java RMI

17 pages

Trace 1

Trace 1

46 pages

Jini

Jini

4 pages

Final

Final

15 pages

Java RMI

Java RMI

13 pages

Testing

Testing

16 pages

Load more
Download Midterm Review
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Midterm Review and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Midterm Review 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?