4

for example with C++ I can write

void func(int a=1,int b=2){...}

using Java I have to create several methods

Asaph
  • 154,284
  • 25
  • 189
  • 193
Vasserman
  • 71
  • 3

1 Answers1

6

It wasn't a feature that the creators of Java thought was important enough to include. Remember that Java was partially created as a reaction against the complexities of C++.

Andrew Hare
  • 333,516
  • 69
  • 632
  • 626