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?
Asked
Active
Viewed 59 times
1 Answers
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