0

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

HashMap<**String**,**String**> HM= new HashMap<**String**, **String**>();
HashMap HM= new HashMap();
Luiggi Mendoza
  • 85,076
  • 16
  • 154
  • 332
Zan
  • 131
  • 1
  • 1
  • 12

1 Answers1

0

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

hd1
  • 33,938
  • 5
  • 80
  • 91