Which one is a valid declaration of a boolean?
boolean b1 = 1;
boolean b2 = ‘false’;
boolean b3 = false;
boolean b4 = ‘true’
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 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 |
3
Discuss
|
Which data type value is returned by all transcendental math functions?
Solution |
4
Discuss
|
What is the numerical range of a char data type in Java?Which of these coding types is used for data type characters in Java?
Solution |
5
Discuss
|
Which of these values can a boolean variable contain?
Solution |
6
Discuss
|
What is the range of short data type in Java?
Solution |
7
Discuss
|
What is the output of below code snippet?
Solution |
8
Discuss
|
What is the base of BigDecimal data type?
Solution |
9
Discuss
|
Which of the following is the advantage of BigDecimal over double?
Solution |
10
Discuss
|
Which of these literals can be contained in float data type variable?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved