-1

That's all. I understand that Long is an object, and long is a primitve type, so why can't I map an object to a number?

zmore3
  • 1
  • 2

1 Answers1

0

First of all... Long is not an object, it is a Class.

Now about your question...

In Generics,unlike C#, Java doesn't support primitive type yet.

Shrinivas Shukla
  • 4,325
  • 2
  • 21
  • 33