for example with c ++ i can write
void func(int a=1,int b=2){...}
using Java I need to create some methods
This was not a feature that Java developers considered important enough to be included. Remember that Java was partially created as a reaction to the complexities of C ++.
Source: https://habr.com/ru/post/1779107/More articles:улучшение крюка трассировки стека в python - pythonAndroid Manifest - androidFirePHP doesn't always write log messages - phpHow are executable [EXE] files launched from browsers? - javascriptIssue with map annotation and MKMapView in iOS 4.2? - annotationsHibernate / HQL / JPQL: what is wrong with CASE WHEN ... THEN NULL ELSE ... END (ClassCastException)? - nulltrying to write a recursive function that counts the number of sequences summing up to this number C ++ - c ++Jquery intelli not supported on Razor pages? - jqueryHow to exchange data via Bluetooth using the iPhone SDK? - iphoneAsynchronous web requests in Java? - javaAll Articles