Advertisement
Arush22

Pg. 432 questions

Apr 2nd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. 1. int [] a;
  2. 2. 0
  3. 3. 29
  4. 4. null
  5. 5. a[6]
  6. 7. a.length
  7. 8. true
  8. 13. 48.3
  9. 14. null
  10. 15. 3
  11. 36. The array was initialized with 3 elements and can't take a fifth element.
  12. 37. There are no negative indexes in an array.
  13. 38. When calling an element you need to use regular brackets instead of curly ones.
  14. 40. The brackets must follow the data type, and if you are declaring the elements while initializing it, you must not declare the number of elements in the array.
  15. 42. You are not supposed to initialize the length, because it will return a value on its own.
  16. 44. All the value in an array must be of the same data type or object type.
  17. 45. If you are declaring the elements while initializing it, you must not declare the number of elements in the array.
  18. 73. Arrays allow you to store multiple pieces of data at once: advantage.
  19. Arrays confine you to one data type: disadvantage.
  20. 75. This is a disadvantage, because you don't know where there error is, and what it is, and you won't know if there is a problem with your code or if the out put you get is just the regular output.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement