0

What is different between < > & () ? How does this work?

HashMap<**String**,**String**> HM= new HashMap<**String**, **String**>();
HashMap HM= new HashMap();
Luiggi Mendoza
  • 83,472
  • 15
  • 149
  • 315
Zan
  • 131
  • 1
  • 12

1 Answers1

0

The <> is for generic types and the () is for function parameters in java.

hd1
  • 32,598
  • 5
  • 75
  • 87