D
Q. What is the output of the following code?
int[] arr = new int[5]; System.out.println(arr[0]);
The default value of an int array is 0.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. In Java, how do you find the maximum element in an array?
Q. For logical value, which primitive type is used
Q. What are the parts of a SWITCH in java?
Q. Which one is commonly used to extend the applications hosted by web servers
Q. What is the default value of a char data type elements of an array in Java?
Q. Which of these cannot be used for a variable name in Java?
Discusssion
Login to discuss.