What is the output of this program?
public class mainclass {
public static void main(String args[])
{
char a = 'A';
a++;
System.out.print((int)a);
}
}
66
67
65
64
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
What is the numerical range of a char data type in Java?
Solution |
2
Discuss
|
What will be the output of the following Java code? - Increment / Decrement
Solution |
3
Discuss
|
What will be the output of these statement?
Solution |
4
Discuss
|
An expression involving byte, int, and literal numbers is promoted to which of these?
Solution |
5
Discuss
|
Which of the following is the advantage of BigDecimal over double?
Solution |
6
Discuss
|
What is the output of this program?
Solution |
7
Discuss
|
What will be the output of the following Java code? - Average
Solution |
8
Discuss
|
Which of the following are legal lines of Java code? 1. int w = (int)888.8; 2. byte x = (byte)100L; 3. long y = (byte)100; 4. byte z = (byte)100L;
Solution |
9
Discuss
|
What is the output of below code snippet?
Solution |
10
Discuss
|
Which of the below data type doesn’t support overloaded methods for +,-,* and /?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved