Quote (DPAD171 @ Mar 18 2010 06:23pm)
1. wrapper
That is technically correct, in that it wraps the value as an object, but the more specific definition is "boxed value types."
2.
Code
getMileage("Ford", "Mustang");
Quote (DPAD171 @ Mar 18 2010 06:23pm)
3. int, double, and boolean
Yes. The others are short, long, float and char.
Quote (DPAD171 @ Mar 18 2010 06:23pm)
4. double dx = new double(dd);
Nope. The type
double is a primative. Calling
new doesn't work. You can rely on autoboxing:
Code
Double dd = dx;
5.
Code
new Random().nextInt(101)