What is the output of this program?
public class array_output {
public static void main(String args[])
{
char array_variable [] = new char[10];
for (int i = 0; i < 10; ++i) {
array_variable[i] = 'i';
System.out.print(array_variable[i] + "" );
i++;
}
}
}
i i i i i
0 1 2 3 4
i j k l m
None of the mentioned
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
What will be the output of these statement?
Solution |
2
Discuss
|
What will be the output of the following Java code? - Increment / Decrement
Solution |
3
Discuss
|
Which one is a valid declaration of a boolean?
Solution |
4
Discuss
|
What is the output of this program?
Solution |
5
Discuss
|
What is the numerical range of a char data type in Java?
Solution |
6
Discuss
|
Which of these literals can be contained in float data type variable?
Solution |
7
Discuss
|
Which of these values can a boolean variable contain?
Solution |
8
Discuss
|
An expression involving byte, int, and literal numbers is promoted to which of these?
Solution |
9
Discuss
|
Which data type value is returned by all transcendental math functions?
Solution |
10
Discuss
|
What will be the output of the following Java code? - Average
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved