What will be the output of the following Java code? - Increment / Decrement
public class increment {
public static void main(String args[])
{
int g = 3;
System.out.print(++g * 8);
}
}
25
24
32
33
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
What is the output of this program?
Solution |
2
Discuss
|
Which of these values can a boolean variable contain?
Solution |
3
Discuss
|
What will be the output of these statement?
Solution |
4
Discuss
|
What is the range of byte data type in Java?
Solution |
5
Discuss
|
What is the output of below code snippet?
Solution |
6
Discuss
|
Which of the below data type doesn’t support overloaded methods for +,-,* and /?
Solution |
7
Discuss
|
Which one is a valid declaration of a boolean?
Solution |
8
Discuss
|
An expression involving byte, int, and literal numbers is promoted to which of these?
Solution |
9
Discuss
|
What is the numerical range of a char data type in Java?
Solution |
10
Discuss
|
Which of these literals can be contained in float data type variable?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved