Which of the following is a valid constant declaration in Java?
1 Like
final int x = 10;
Reason — In Java, constants are declared using the final keyword. The correct way is:
final
x
Answered By
2 Likes
Consider the array given below:
char ch[] = {'A','E','I','O', 'U'};
Write the output of the following statements:
System.out.println(ch[0]*2);: