CodesJava

Easy learning with example program codes

can array size be negative in java?


No, array size cannot be negative. If we specify array size as negative, there will be no compile time error. But there will be run time NegativeArraySizeException.



Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap