D
Q. What is the output of the following code?
int[] arr = new int[]{1, 2, 3, 4, 5}; for (int i = 0; i < arr.length; i++) { System.out.println(arr[i]); }
The for loop iterates over each element of the array and prints its value.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. Which of these keywords are used to define an abstract class?
Q. Which of these methods is not defined in both Byte and Short wrappers?
Q. Which attribute is used to specify class name of the bean?
Q. Which specification that provides runtime environment in which java byte code can be executed?
Q. If there is no constructor in a class, compiler automatically creates a default constructor.
Q. Which of these stream contains the classes which can work on character stream?
Q. A 4-dimensional array is an array of ___ dimensional arrays.
Q. Which of the following is not a valid identifier for a Java variable?
Discusssion
Login to discuss.