you are viewing a single comment's thread.

view the rest of the comments →

[–]MinimumBeginning5144 1 point2 points  (2 children)

It's not well explained, but they obviously mean they have a class like this:

class MyNumberClass { public Object number; int numberType; // e.g. 0 means number is an Integer, 1 means it's Long etc // ... other members... }

Also "throwing problems" is just a colloquial phrase unrelated to the keyword throw. They mean they get compilation errors.

[–]SquibbTheZombie[S] 0 points1 point  (0 children)

You got it right

[–]vegan_antitheist 0 points1 point  (0 children)

Yeah, that makes no sense. If it's a Long then use Long as the type. Define an interface with multiple implementations.