KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
While fiddling around in Java, I initialized a new String array with a negative length. i.e. - String[] arr = new String[-1]; To my surprise, the compiler didn't complain about it. Googling didn't bring up any relevant answers. Can anyone shed some light on this matter? Many thanks!
Tags (comma-separated)
Save Edits
Cancel