Question & Answer: 1. A wrapper dass encapsulates, or wraps, the primitive types within an object. OFalse 32. Which t…..

31. A wrapper dass encapsulates, or wraps, the primitive types within an object. OFalse 32. Which two are limitations of an array of primitives (ie: intx)? (Choose all correct answers) □The size of the array is fixed during array creation and cannot grow once initialized. You cannot overwrite the contents of an array once initialized. You need to create your own methods to manipulate array contents. You can create only one array in a dass. 33. What is the output? int[] arr new int(1) arr[0] = 10: System.out.printin(arr[O]) 10 34. The Java compiler does not check for an ArrayIndexOutofBoundsException during the compilation of a program containing arrays. OFalse 35. Which two are valid array (Choose all correct answers) □ []int size; □ int size[]; □int array size; | | int[] size;

31. A wrapper dass encapsulates, or wraps, the primitive types within an object. OFalse 32. Which two are limitations of an array of primitives (ie: intx)? (Choose all correct answers) □The size of the array is fixed during array creation and cannot grow once initialized. You cannot overwrite the contents of an array once initialized. You need to create your own methods to manipulate array contents. You can create only one array in a dass. 33. What is the output? int[] arr new int(1) arr[0] = 10: System.out.printin(arr[O]) 10 34. The Java compiler does not check for an ArrayIndexOutofBoundsException during the compilation of a program containing arrays. OFalse 35. Which two are valid array (Choose all correct answers) □ []int size; □ int size[]; □int array size; | | int[] size;

Expert Answer

 

31)True

32)1,2,4

33)10

34)True

35)2,4

37)4 int x=2

38)A datatype is incorrect

39)True

40)1,4

Still stressed from student homework?
Get quality assistance from academic writers!