Notes
Untitled
Content of the notes (1)
Page 1
Java will create an empty array if no parameters are passed for a
vararg. However, it is still possible to pass null explicitly:
walk(int i, int... nums);
walk(1);
walk(1, 1);
walk(1, null); // throws a NullPointerException
Information
- Description
- Note on Untitled, created by Everton Gonçalves on 23/11/2018.
- Created by
- Everton Gonçalves
- Views
- 0
- Rating