What will be the output of these statement?
public class output {
public static void main(String args[])
{
double a, b, c;
a = 3.0/0;
b = 0/4.0;
c = 0/0.0;
System.out.println(a);
System.out.println(b);
System.out.println(c);
}
}
Infinity
0.0
NaN
all of the mentioned
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
| # | Quiz |
|---|---|
|
1
Discuss
|
Which of the below data type doesn’t support overloaded methods for +,-,* and /?
Solution |
|
2
Discuss
|
What is the range of short data type in Java?
Solution |
|
3
Discuss
|
What will be the output of the following Java code? - Area Of Circle
Solution |
|
4
Discuss
|
What is the output of this program?
Solution |
|
5
Discuss
|
An expression involving byte, int, and literal numbers is promoted to which of these?
Solution |
|
6
Discuss
|
What is the range of byte data type in Java?
Solution |
|
7
Discuss
|
What is the base of BigDecimal data type?
Solution |
|
8
Discuss
|
Which data type value is returned by all transcendental math functions?
Solution |
|
9
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 |
|
10
Discuss
|
What is the numerical range of a char data type in Java?
Solution |
| # | Quiz |
Copyright © 2020 Inovatik - All rights reserved