What will be the output of the following Java program?
class Modulus
{
public static void main(String args[])
{
double a = 25.64;
int b = 25;
a = a % 10;
b = b % 10;
System.out.println(a + " " + b);
}
}
5.640000000000001 5
5.640000000000001 5.0
5 5
5 5.640000000000001
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
What will be the output of the following Java code?
Solution |
2
Discuss
|
What will be the output of the following Java code?
Solution |
3
Discuss
|
Which of these is returned by “greater than”, “less than” and “equal to” operators?
Solution |
4
Discuss
|
What will be the output of the following Java program?
Solution |
5
Discuss
|
What will be the output of the following Java code?
Solution |
6
Discuss
|
What will be the output of the following Java program?
Solution |
7
Discuss
|
What is the output of relational operators?
Solution |
8
Discuss
|
Which operator is used to invert all the digits in a binary representation of a number?
Solution |
9
Discuss
|
On applying Left shift operator, <<, on integer bits are lost one they are shifted past which position bit?
Solution |
10
Discuss
|
Which of these have highest precedence?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved