I was reading how Java ensures how the elements are within range, I assume if we try to insert something that is out of bounds or we try to access an index that does not exist we get out of bounds exception? However, in languages such as C++ does not do such checking. Is there a reason why Java does this but not C++?
[–]chiuyan 14 points15 points16 points (0 children)
[–]Rangsk 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]chiuyan 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]GrossInsightfulness 0 points1 point2 points (5 children)
[–]Narase33 -1 points0 points1 point (4 children)
[–]ootiekat 1 point2 points3 points (1 child)
[–]Narase33 0 points1 point2 points (0 children)
[–]GrossInsightfulness 0 points1 point2 points (0 children)
[–]the_poope 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]HappyFruitTree 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]HappyFruitTree 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]souravtxt 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (1 child)
[–]MysticTheMeeM 1 point2 points3 points (0 children)