
PLEASE HELP ME ANSWER THESE ARRAY TUTORIAL
Q1- It is easy to write outsides the bounds of a String or an array in Java: True or False? If false, explain why.
Q2 - In Java, you must declare an array before you can use it. In declaring the array, you must provide two important pieces of information. What are they?
Q3 - Provide code fragments that illustrate the two different syntaxes that can be used to declare an array in type int in Java.
Q4 - When you declare an array in Java, the memory required to contain the array is automatically allocated. True or False. If false, explain why and show how memory can be allocated.
Q5 - In Java, it is required that you simultaneously declare the name of the array and cause memory to be allocated to contain the array in a single statement: True or False? If false, explain why and show code fragments to illustrate your answer.
Q6 - Array indices in Java always begin with 1: True or False. If false, explain why.
Q7 - What is the name of the property of arrays in Java that can be accessed to determine the number of elements that can be stored in an array? Provide a sample code fragment that illustrates the use of this property.
Q8 - What types of data can be stored in Java arrays?
Array Exercise: 1. Given an array of 100 integers , to be populated by random numbers , use Random class.Write a program that determines whether the sum of the even-index elements is greater than the sum of the odd-index elements. (ArraySumComparison.java)
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.