# on 01-Aug-2014 (Fri)

#### Annotation 149624601

#finance #greeks #has-images

Spot
Price (S)
Volatility
()
Time to
Expiry ()
Value (V) Delta Vega Theta
Delta () GammaVannaCharm
Vega () VannaVomma
...

Greeks (finance) - Wikipedia, the free encyclopedia
or4.2 Speed4.3 Ultima4.4 Zomma 5 Greeks for multi-asset options6 Formulas for European option Greeks7 Related measures 7.1 Bond duration and convexity7.2 Beta7.3 Fugit 8 See also9 Notes10 References11 External links Use of the Greeks <span>Spot Price (S)Volatility ()Time to Expiry ()Value (V) Delta Vega ThetaDelta () GammaVannaCharmVega () VannaVommaVetaGamma () SpeedZommaColorVomma UltimaTotto Definition of Greeks as the sensitivity of an option's price and risk (in the first column) to the underlying parameter (in the first row). First-order Greeks are in blue, second-order Greeks are in green, and third-order Greeks are in yellow. Note that vanna appears twice as it should, and rho is left out as it is not as important as the rest. The Greeks are vital tools in risk management. Each Greek measures the sensitivity of the value of a portfolio to a small change in a given underlying parameter, so that component risks

#### Flashcard 149625984

Tags
#bloch-effective-java-2ed #java
Question

Suppose we have a class


public class Point {
private final int x;
private final int y;

@Override public boolean equals(Object o) {
if (!(o instanceof Point))
return false;
Point p = (Point)o;
return p.x == x && p.y == y;
}
// Remainder omitted
}


and a subclass

public class ColorPoint extends Point {
private final Color color;

@Override public boolean equals(Object o) {
if (!(o instanceof ColorPoint))
return false;
return super.equals(o) && ((ColorPoint) o).color == color;
}

// Remainder omitted
}


what are the consequences of implementing equals() method on ColorPoint like above?

It violates symmetry. You get different results when comparing a point to a color point and vice versa.

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Flashcard 149626363

Tags
#bonds #duration #finance
Question
For most practical calculations, the Macaulay duration is calculated using the [...]

status measured difficulty not learned 37% [default] 0

#### Parent (intermediate) annotation

Open it
For most practical calculations, the Macaulay duration is calculated using the yield to maturity

#### Original toplevel document

Bond duration - Wikipedia, the free encyclopedia
ey are and the final large circle including the final principal repayment. If these circles were put on a balance beam, the fulcrum of the beam would represent the weighted average distance (time to payment), which is 1.78 years in this case. <span>For most practical calculations, the Macaulay duration is calculated using the yield to maturity to calculate the : (2) (3) where: indexes the cash flows, is the present value of the th cash payment from an asset, is the cash flow of the th payment from an asset, is the y

#### Flashcard 149626370

Tags
#bonds #duration #finance
Question
DV01 is the ratio of a [...]to unit change in input (a basis point of yield).
price change in output (dollars)

status measured difficulty not learned 37% [default] 0

#### Parent (intermediate) annotation

Open it
DV01 is the ratio of a price change in output (dollars) to unit change in input (a basis point of yield).

#### Original toplevel document

Bond duration - Wikipedia, the free encyclopedia
to yield: so that it is the product of the modified duration and the price (value): ($per 1 percentage point change in yield) or ($ per 1 basis point change in yield) The DV01 is analogous to the delta in derivative pricing (The Greeks) – <span>it is the ratio of a price change in output (dollars) to unit change in input (a basis point of yield). Dollar duration or DV01 is the change in price in dollars, not in percentage. It gives the dollar variation in a bond's value per unit change in the yield. It is often measured per 1 bas

#### Flashcard 149626377

Tags
#bonds #duration #finance
Question
DV01 is the ratio of a price change in output (dollars) to [...].
unit change in input (a basis point of yield)

status measured difficulty not learned 37% [default] 0

#### Parent (intermediate) annotation

Open it
DV01 is the ratio of a price change in output (dollars) to unit change in input (a basis point of yield).

#### Original toplevel document

Bond duration - Wikipedia, the free encyclopedia
to yield: so that it is the product of the modified duration and the price (value): ($per 1 percentage point change in yield) or ($ per 1 basis point change in yield) The DV01 is analogous to the delta in derivative pricing (The Greeks) – <span>it is the ratio of a price change in output (dollars) to unit change in input (a basis point of yield). Dollar duration or DV01 is the change in price in dollars, not in percentage. It gives the dollar variation in a bond's value per unit change in the yield. It is often measured per 1 bas

#### Flashcard 149626385

Tags
#bonds #duration #finance
Question
[another name of DV01, not the meaning of the abbreviation DV01] or DV01 is the change in price in dollars, not in percentage.
Dollar duration

status measured difficulty not learned 37% [default] 0

#### Parent (intermediate) annotation

Open it
Dollar duration or DV01 is the change in price in dollars, not in percentage.

#### Original toplevel document

Bond duration - Wikipedia, the free encyclopedia

#### Flashcard 149626407

Tags
#bonds #duration #finance
Question
Dollar duration or DV01 is the change in price in [...], not in [...].
in dollars, not in percentage

status measured difficulty not learned 37% [default] 0

#### Parent (intermediate) annotation

Open it
Dollar duration or DV01 is the change in price in dollars, not in percentage.

#### Original toplevel document

Bond duration - Wikipedia, the free encyclopedia
e point change in yield) or (\$ per 1 basis point change in yield) The DV01 is analogous to the delta in derivative pricing (The Greeks) – it is the ratio of a price change in output (dollars) to unit change in input (a basis point of yield). <span>Dollar duration or DV01 is the change in price in dollars, not in percentage. It gives the dollar variation in a bond's value per unit change in the yield. It is often measured per 1 basis point - DV01 is short for "dollar value of an 01" (or 1 basis poi

#### Flashcard 149626419

Tags
Question
Given a single series of nominal cash flows (like a riskless bond). If these payments are discounted to net present value with a static [...]yield curve the sum of their values will tend to overestimate the market price of the priced instrument. The parallel shift, which, if applied to the yield curve makes the NPV of the anticipated receipts equal to the market price is the Yield curve spread (aka Z-spread).
treasury

status measured difficulty not learned 37% [default] 0

#### Parent (intermediate) annotation

Open it
Given a single series of nominal cash flows (like a riskless bond). If these payments are discounted to net present value with a static treasury yield curve the sum of their values will tend to overestimate the market price of the priced instrument. The parallel shift, which, if applied to the yield curve makes the NPV of the ant

#### Original toplevel document

Z-spread - Wikipedia, the free encyclopedia
age-backed securities, a model of typical repayment rates tends to be given; for example, the PSA formula for a particular Fannie Mae MBS might equate a particular group of mortgages to an 8 year amortizing bond with a 5% mortality per annum. <span>This gives a single series of nominal cash flows (like a riskless bond). If these payments are discounted to net present value with a static treasury yield curve the sum of their values will tend to overestimate the market price of the MBS. The parallel shift, which, if applied to the yield curve makes the NPV of the anticipated receipts equal to the market price is the Yield curve spread. The Z-spread of a bond is the number of basis points one needs to add to the Treasury spot rates yield curve, so that the NPV of the bond cash flows (using the adjusted yield curve) equa

#### Flashcard 149626426

Tags
Question
Given a single series of nominal cash flows (like a riskless bond). If these payments are discounted to net present value with a static treasury yield curve the sum of their values will tend to [overestimate or underestimate?] the market price of the priced instrument. The parallel shift, which, if applied to the yield curve makes the NPV of the anticipated receipts equal to the market price is the Yield curve spread (aka Z-spread).
overestimate

status measured difficulty not learned 37% [default] 0

#### Parent (intermediate) annotation

Open it
Given a single series of nominal cash flows (like a riskless bond). If these payments are discounted to net present value with a static treasury yield curve the sum of their values will tend to overestimate the market price of the priced instrument. The parallel shift, which, if applied to the yield curve makes the NPV of the anticipated receipts equal to the market price is the Yield curve

#### Original toplevel document

Z-spread - Wikipedia, the free encyclopedia
age-backed securities, a model of typical repayment rates tends to be given; for example, the PSA formula for a particular Fannie Mae MBS might equate a particular group of mortgages to an 8 year amortizing bond with a 5% mortality per annum. <span>This gives a single series of nominal cash flows (like a riskless bond). If these payments are discounted to net present value with a static treasury yield curve the sum of their values will tend to overestimate the market price of the MBS. The parallel shift, which, if applied to the yield curve makes the NPV of the anticipated receipts equal to the market price is the Yield curve spread. The Z-spread of a bond is the number of basis points one needs to add to the Treasury spot rates yield curve, so that the NPV of the bond cash flows (using the adjusted yield curve) equa

#### Flashcard 149626437

Tags
Question
Given a single series of nominal cash flows (like a riskless bond). If these payments are discounted to net present value with a static treasury yield curve the sum of their values will tend to overestimate the market price of the priced instrument. The [...] is the Yield curve spread (aka Z-spread).
parallel shift, which, if applied to the yield curve makes the NPV of the anticipated receipts equal to the market price

status measured difficulty not learned 37% [default] 0

#### Parent (intermediate) annotation

Open it
gle series of nominal cash flows (like a riskless bond). If these payments are discounted to net present value with a static treasury yield curve the sum of their values will tend to overestimate the market price of the priced instrument. The <span>parallel shift, which, if applied to the yield curve makes the NPV of the anticipated receipts equal to the market price is the Yield curve spread (aka Z-spread).<span><body><html>

#### Original toplevel document

Z-spread - Wikipedia, the free encyclopedia
age-backed securities, a model of typical repayment rates tends to be given; for example, the PSA formula for a particular Fannie Mae MBS might equate a particular group of mortgages to an 8 year amortizing bond with a 5% mortality per annum. <span>This gives a single series of nominal cash flows (like a riskless bond). If these payments are discounted to net present value with a static treasury yield curve the sum of their values will tend to overestimate the market price of the MBS. The parallel shift, which, if applied to the yield curve makes the NPV of the anticipated receipts equal to the market price is the Yield curve spread. The Z-spread of a bond is the number of basis points one needs to add to the Treasury spot rates yield curve, so that the NPV of the bond cash flows (using the adjusted yield curve) equa

#### Flashcard 149626455

Tags
#bonds #duration #finance
Question
Macaulay duration is a weighted average [...] until repayment (measured in [...])
time until repayments, e.g. coupons and principal (measured in units of time such as years)

status measured difficulty not learned 37% [default] 0

#### Parent (intermediate) annotation

Open it
Macaulay duration is a weighted average time until repayment (measured in units of time such as years)

#### Original toplevel document

Bond duration - Wikipedia, the free encyclopedia
the asset. This gives the well-known relation between Macaulay duration and modified duration quoted above. It should be remembered that, even though Macaulay duration and modified duration are closely related, they are conceptually distinct. <span>Macaulay duration is a weighted average time until repayment (measured in units of time such as years) while modified duration is a price sensitivity measure when the price is treated as a function of yield, the percentage change in price with respect to yield. Units For modified du

#### Flashcard 149626468

Tags
#bonds #duration #finance
Question
[...]is a price sensitivity measure when the price is treated as a function of yield, the percentage change in price with respect to yield.
modified duration

status measured difficulty not learned 37% [default] 0

#### Parent (intermediate) annotation

Open it
modified duration is a price sensitivity measure when the price is treated as a function of yield, the percentage change in price with respect to yield.

#### Original toplevel document

Bond duration - Wikipedia, the free encyclopedia
t should be remembered that, even though Macaulay duration and modified duration are closely related, they are conceptually distinct. Macaulay duration is a weighted average time until repayment (measured in units of time such as years) while <span>modified duration is a price sensitivity measure when the price is treated as a function of yield, the percentage change in price with respect to yield. Units For modified duration the common units are the percent change in price per one percentage point change in yield per year (for example yield going from 8% per year (y = 0.08)

#### Flashcard 149626487

Tags
Question
Conventionally, the zero rates for calculating Z-spread are determined from the Treasury curve, with [...]compounding.
semi-annual

status measured difficulty not learned 37% [default] 0

#### Parent (intermediate) annotation

Open it
Conventionally, the zero rates for calculating Z-spread are determined from the Treasury curve, with semi-annual compounding.

#### Original toplevel document

Z-spread - Wikipedia, the free encyclopedia
onal factors such as liquidity and credit risk. The Z-spread quantifies the impact of these additional factors. It is the spread you need to add to the curve you are discounting with in order to generate a price that matches the market price. <span>Conventionally, the zero rates are determined from the Treasury curve, with semi-annual compounding. The Problem with YTM spreads Coupon Paying bonds are essentially portfolios of Zero Coupon Bond components and the Yield to Maturity of such instruments can be thought of as being

#### Flashcard 149626507

Tags
#bloch-effective-java-2ed #java
Question
How to calculate hash code of a double?
Double.doubleToLongBits(f) and then calculate hash code of the resulting long.

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Flashcard 149626518

Tags
#bloch-effective-java-2ed #java
Question
How to combine hash codes from different fields of an object?
Initially, result = 17; // any non zero value
then result = 31 * result + hashCodeOfAField; // for each field

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Flashcard 149626529

Tags
#bloch-effective-java-2ed #java
Question
clone() creates an object without [...]
without calling the constructor

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Flashcard 149626540

Tags
#bloch-effective-java-2ed #java
Question
Programmers assume that if they extend a class and invoke super.clone from the subclass X, the returned object will be an instance of [...].
the subclass X

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Flashcard 149626551

Question
Programmers assume that if they extend a class and invoke super.clone from the subclass, the returned object will be an instance of the subclass. The only way a superclass can provide this functionality is to return an object obtained by calling [...] and have [...] obey the same rule [...] which creates [...]
super.clone() and have all the superclasses obey the same rule up till Object, which creates the object of the correct class.

status measured difficulty not learned 37% [default] 0

#### Flashcard 149626566

Tags
#bloch-effective-java-2ed #java
Question
what does the Object's clone() method return? Describe 2 cases
it returns a copy of the object of the correct (runtime) class and copies fields as if by (assignment) = operator if actual class implements Cloneable, otherwise it throws CloneNotSupportedException.

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Flashcard 149626577

Tags
#bloch-effective-java-2ed #java
Question
the clone architecture is incompatible with normal use of [...] fields referring to mutable objects
final

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Annotation 149626597

 #bloch-effective-java-2ed #java Object’s clone method is declared to throw CloneNotSupportedException, but overriding clone methods can omit this declaration.

#### pdf

cannot see any pdfs

#### Flashcard 149626604

Tags
#bloch-effective-java-2ed #java
Question
what methods does Cloneable interface have?
none, not even clone() - you are expected to provide public clone() though on classes that implement Cloneable

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

Article 149626615

Joshua Bloch "Effective Java"
#bloch-effective-java-2ed #java

Book on effective use of Java, must-read when you prepare for an interview as a Java programmer.  I was reading the book and every flashcard or article I created were annotated like this: #bloch-effective-java-2ed #java #pXX, where XX is page number. The book can be found in amazon.co.uk

#### Flashcard 149626624

Tags
#bloch-effective-java-2ed #java
Question
Because of its many shortcomings, some expert programmers simply choose never to override the clone() method and never to invoke it except, perhaps, to copy [...]
arrays

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Annotation 149626644

 #bloch-effective-java-2ed #java the same caveat applies to compareTo() as to equals(): there is no way to extend an instantiable class with a new value component while preserving the compareTo contract, unless you are willing to forgo the benefits of object-oriented abstraction

#### pdf

cannot see any pdfs

#### Flashcard 149626651

Tags
#bloch-effective-java-2ed #java
Question
What is wrong with this implementation of compareTo()?

public int compareTo(PhoneNumber pn) {
return lineNumber - pn.lineNumber;
}


if pn.lineNumber is large and negative, int substraction can overflow silently

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Annotation 149626671

 #bloch-effective-java-2ed #java For top-level (non-nested) classes and interfaces, there are only two possible access levels: package-private and public.

#### pdf

cannot see any pdfs

#### Flashcard 149626678

Tags
#bloch-effective-java-2ed #java
Question
Why is it wrong?
public static final Thing[] VALUES = { ... };
Non-zero length arrays are always mutable

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

Article 149626689

#bloch-effective-java-2ed #java #p109

A class or interface whose declaration has one or more type parameters is a generic class or interface.

#### Flashcard 149626698

Tags
#bloch-effective-java-2ed #java #java-generics
Question
A class or interface whose declaration has one or more [...]is a generic class or interface.
(formal) type parameters

status measured difficulty not learned 37% [default] 0
Open it
A class or interface whose declaration has one or more type parameters is a generic class or interface.

#### Flashcard 149626705

Tags
#bloch-effective-java-2ed #java #java-generics
Question
A class or interface whose declaration has one or more type parameters is a [...]class or interface.
generic

status measured difficulty not learned 37% [default] 0
Open it
A class or interface whose declaration has one or more type parameters is a generic class or interface.

#### Flashcard 149626721

Tags
#bloch-effective-java-2ed #java #java-generics
Question
Generic classes and interfaces are collectively known as [...].
generic types

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

Article 149626728

#bloch-effective-java-2ed #java #p109

Each generic type defines a set of parameterized types, which consist of the class or interface name followed by an angle-bracketed list of actual type parameters corresponding to the generic type’s formal type parameters.

#### Flashcard 149626737

Tags
#bloch-effective-java-2ed #java #java-generics
Question
Each generic type defines a set of [...], which consist of the class or interface name followed by an angle-bracketed list of actual type parameters corresponding to the generic type’s formal type parameters.
parameterized types

status measured difficulty not learned 37% [default] 0
Open it
Each generic type defines a set of parameterized types, which consist of the class or interface name followed by an angle-bracketed list of actual type parameters corresponding to the generic type’s formal type parameters.</bo

#### Flashcard 149626744

Tags
#bloch-effective-java-2ed #java #java-generics
Question
Each generic type defines a set of parameterized types, which consist of the class or interface name followed by an angle-bracketed list of [...].
actual type parameters (corresponding to the generic type’s formal type parameters)

status measured difficulty not learned 37% [default] 0
Open it
Each generic type defines a set of parameterized types, which consist of the class or interface name followed by an angle-bracketed list of actual type parameters corresponding to the generic type’s formal type parameters.

Article 149626755

#bloch-effective-java-2ed #java #p109

Each generic type defines a raw type, which is the name of the generic type used without any accompanying actual type parameters

#### Flashcard 149626764

Tags
#bloch-effective-java-2ed #java #java-generics
Question
Each generic type defines a [...], which is the name of the generic type used without any accompanying actual type parameters
raw type

status measured difficulty not learned 37% [default] 0
Open it
Each generic type defines a raw type, which is the name of the generic type used without any accompanying actual type parameters

#### Flashcard 149626771

Tags
#bloch-effective-java-2ed #java #java-generics
Question
Each generic type defines a raw type, which is the
name of the generic type used without any accompanying actual type parameters

status measured difficulty not learned 37% [default] 0
Open it
Each generic type defines a raw type, which is the name of the generic type used without any accompanying actual type parameters

#### Flashcard 149626778

Tags
#bloch-effective-java-2ed #java #java-generics
Question
What element can you put into Collection<?> ?
only null

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

#### Flashcard 149626789

Tags
#bloch-effective-java-2ed #java #java-generics
Question
How can you use generics in class literals, e.g. XX.class or (y instanceof XX) ?
You can't. For example List<String>.class is illegal. You have to use raw types.

status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs

Article 149626800

generics terms quick reference
#bloch-effective-java-2ed #java #p115

TermExampleParameterized typeList<String>Actual type parameterStringGeneric typeList<E>Formal type parameterEUnbounded wildcard typeList<?>Raw typeListBounded type parameter<E extends Number>Recursive type bound<T extends Comparable<T>>Bounded wildcard typeList<? extends Number>Generic method static<E> List<E> asList(E[] a)Type tokenString.class

#### Flashcard 149626809

Tags
#bloch-effective-java-2ed #java #java-generics
Question
TermExample
[...]List<String>
Actual type parameterString
Generic typeList<E>
Formal type parameterE
Unbounded wildcard typeList<?>
Raw typeList
Bounded type parameter<E extends Number>
Recursive type bound<T extends Comparable<T>>
Bounded wildcard typeList<? extends Number>
Generic method static<E> List<E> asList(E[] a)
Type tokenString.class
Parameterized type

status measured difficulty not learned 37% [default] 0
generics terms quick reference
TermExampleParameterized typeListActual type parameterStringGeneric typeListFormal type parameterEUnbounded wildcard typeListRaw typeListBounded type parameterRecursive type bound>Bounded wildcard typeListGeneric

#### Flashcard 149626816

Tags
#bloch-effective-java-2ed #java #java-generics
Question
TermExample
Parameterized typeList<String>
[...]String
Generic typeList<E>
Formal type parameterE
Unbounded wildcard typeList<?>
Raw typeList
Bounded type parameter<E extends Number>
Recursive type bound<T extends Comparable<T>>
Bounded wildcard typeList<? extends Number>
Generic method static<E> List<E> asList(E[] a)
Type tokenString.class
Actual type parameter

status measured difficulty not learned 37% [default] 0
generics terms quick reference
TermExampleParameterized typeListActual type parameterStringGeneric typeListFormal type parameterEUnbounded wildcard typeListRaw typeListBounded type parameterRecursive type bound>Bounded wildcard typeListGeneric method static List asLis

#### Flashcard 149626823

Tags
#bloch-effective-java-2ed #java #java-generics
Question
TermExample
Parameterized typeList<String>
Actual type parameterString
[...]List<E>
Formal type parameterE
Unbounded wildcard typeList<?>
Raw typeList
Bounded type parameter<E extends Number>
Recursive type bound<T extends Comparable<T>>
Bounded wildcard typeList<? extends Number>
Generic method static<E> List<E> asList(E[] a)
Type tokenString.class
Generic type

status measured difficulty not learned 37% [default] 0
generics terms quick reference
TermExampleParameterized typeListActual type parameterStringGeneric typeListFormal type parameterEUnbounded wildcard typeListRaw typeListBounded type parameterRecursive type bound>Bounded wildcard typeListGeneric method static List asList(E[] a)Type token

#### Flashcard 149626830

Tags
#bloch-effective-java-2ed #java #java-generics
Question
TermExample
Parameterized typeList<String>
Actual type parameterString
Generic typeList<E>
[...]E
Unbounded wildcard typeList<?>
Raw typeList
Bounded type parameter<E extends Number>
Recursive type bound<T extends Comparable<T>>
Bounded wildcard typeList<? extends Number>
Generic method static<E> List<E> asList(E[] a)
Type tokenString.class
Formal type parameter

status measured difficulty not learned 37% [default] 0
generics terms quick reference
TermExampleParameterized typeListActual type parameterStringGeneric typeListFormal type parameterEUnbounded wildcard typeListRaw typeListBounded type parameterRecursive type bound>Bounded wildcard typeListGeneric method static List asList(E[] a)Type tokenString.class

#### Flashcard 149626837

Tags
#bloch-effective-java-2ed #java #java-generics
Question
TermExample
Parameterized typeList<String>
Actual type parameterString
Generic typeList<E>
Formal type parameterE
[...]List<?>
Raw typeList
Bounded type parameter<E extends Number>
Recursive type bound<T extends Comparable<T>>
Bounded wildcard typeList<? extends Number>
Generic method static<E> List<E> asList(E[] a)
Type tokenString.class
Unbounded wildcard type

status measured difficulty not learned 37% [default] 0
generics terms quick reference
TermExampleParameterized typeListActual type parameterStringGeneric typeListFormal type parameterEUnbounded wildcard typeListRaw typeListBounded type parameterRecursive type bound>Bounded wildcard typeListGeneric method static List asList(E[] a)Type tokenString.class

#### Flashcard 149626844

Tags
#bloch-effective-java-2ed #java #java-generics
Question
TermExample
Parameterized typeList<String>
Actual type parameterString
Generic typeList<E>
Formal type parameterE
Unbounded wildcard typeList<?>
[...]List
Bounded type parameter<E extends Number>
Recursive type bound<T extends Comparable<T>>
Bounded wildcard typeList<? extends Number>
Generic method static<E> List<E> asList(E[] a)
Type tokenString.class
Raw type

status measured difficulty not learned 37% [default] 0
generics terms quick reference
TermExampleParameterized typeListActual type parameterStringGeneric typeListFormal type parameterEUnbounded wildcard typeListRaw typeListBounded type parameterRecursive type bound>Bounded wildcard typeListGeneric method static List asList(E[] a)Type tokenString.class

#### Flashcard 149626851

Tags
#bloch-effective-java-2ed #java #java-generics
Question
TermExample
Parameterized typeList<String>
Actual type parameterString
Generic typeList<E>
Formal type parameterE
Unbounded wildcard typeList<?>
Raw typeList
[...]<E extends Number>
Recursive type bound<T extends Comparable<T>>
Bounded wildcard typeList<? extends Number>
Generic method static<E> List<E> asList(E[] a)
Type tokenString.class
Bounded type parameter

status measured difficulty not learned 37% [default] 0
generics terms quick reference
TermExampleParameterized typeListActual type parameterStringGeneric typeListFormal type parameterEUnbounded wildcard typeListRaw typeListBounded type parameterRecursive type bound>Bounded wildcard typeListGeneric method static List asList(E[] a)Type tokenString.class

#### Flashcard 149626858

Tags
#bloch-effective-java-2ed #java #java-generics
Question
TermExample
Parameterized typeList<String>
Actual type parameterString
Generic typeList<E>
Formal type parameterE
Unbounded wildcard typeList<?>
Raw typeList
Bounded type parameter<E extends Number>
[...]<T extends Comparable<T>>
Bounded wildcard typeList<? extends Number>
Generic method static<E> List<E> asList(E[] a)
Type tokenString.class
Recursive type bound

status measured difficulty not learned 37% [default] 0
generics terms quick reference
TermExampleParameterized typeListActual type parameterStringGeneric typeListFormal type parameterEUnbounded wildcard typeListRaw typeListBounded type parameterRecursive type bound>Bounded wildcard typeListGeneric method static List asList(E[] a)Type tokenString.class

#### Flashcard 149626865

Tags
#bloch-effective-java-2ed #java #java-generics
Question
TermExample
Parameterized typeList<String>
Actual type parameterString
Generic typeList<E>
Formal type parameterE
Unbounded wildcard typeList<?>
Raw typeList
Bounded type parameter<E extends Number>
Recursive type bound<T extends Comparable<T>>
[...]List<? extends Number>
Generic method static<E> List<E> asList(E[] a)
Type tokenString.class
Bounded wildcard type

status measured difficulty not learned 37% [default] 0
generics terms quick reference
TermExampleParameterized typeListActual type parameterStringGeneric typeListFormal type parameterEUnbounded wildcard typeListRaw typeListBounded type parameterRecursive type bound>Bounded wildcard typeListGeneric method static List asList(E[] a)Type tokenString.class

#### Flashcard 149626872

Tags
#bloch-effective-java-2ed #java #java-generics
Question
TermExample
Parameterized typeList<String>
Actual type parameterString
Generic typeList<E>
Formal type parameterE
Unbounded wildcard typeList<?>
Raw typeList
Bounded type parameter<E extends Number>
Recursive type bound<T extends Comparable<T>>
Bounded wildcard typeList<? extends Number>
[...]<E> List<E> asList(E[] a)
Type tokenString.class
Generic method static

status measured difficulty not learned 37% [default] 0
generics terms quick reference
tml>TermExampleParameterized typeListActual type parameterStringGeneric typeListFormal type parameterEUnbounded wildcard typeListRaw typeListBounded type parameterRecursive type bound>Bounded wildcard typeListGeneric method static List asList(E[] a)Type tokenString.class<html>

#### Flashcard 149626879

Tags
#bloch-effective-java-2ed #java #java-generics
Question
TermExample
Parameterized typeList<String>
Actual type parameterString
Generic typeList<E>
Formal type parameterE
Unbounded wildcard typeList<?>
Raw typeList
Bounded type parameter<E extends Number>
Recursive type bound<T extends Comparable<T>>
Bounded wildcard typeList<? extends Number>
Generic method static<E> List<E> asList(E[] a)
[...]String.class
Type token

status measured difficulty not learned 37% [default] 0
generics terms quick reference
xampleParameterized typeListActual type parameterStringGeneric typeListFormal type parameterEUnbounded wildcard typeListRaw typeListBounded type parameterRecursive type bound>Bounded wildcard typeListGeneric method static List asList(E[] a)<span>Type tokenString.class<span><body><html>

#### Flashcard 149626886

Tags
#bloch-effective-java-2ed #java #java-generics
Question
How to cast raw type Set to typesafe Set using generics?

if (o instanceof Set) { // Raw type
// here
}


Use unbounded wildcard type:

if (o instanceof Set) { // Raw type
Set<?> m = (Set<?>) o; // Wildcard type
// rest of the code
}



status measured difficulty not learned 37% [default] 0

#### pdf

cannot see any pdfs