Question: To declare an array or integers 2 points that has 5 elements use: Aint n = new int[5) OB int n[] = new int[5] C.

 To declare an array or integers 2 points that has 5

To declare an array or integers 2 points that has 5 elements use: Aint n = new int[5) OB int n[] = new int[5] C. Int[s] n = new Intl both a and b both bandc 2 points If you wanted to find out where the position of the letter v (i.e, return 2) in the Strings containing the word "Java", which of the following could you use? O mid(2,8) s.charAt(2); s indexoffv); indexOf(s.V); Which one of the following is a 2 points valid method declaration. public static void method public static void method20 public static void method3 (vold) method40 Which of these is an incorrect 2 points array declaration? int arrll-new int[5]: int [arr = new int[51: int arrlll) = new int [5: none of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!