What will be the output of the following Java program?
public class dynamic_initialization
{
public static void main(String args[])
{
double a, b;
a = 3.0;
b = 4.0;
double c = Math.sqrt(a * a + b * b);
System.out.println(c);
}
}
5.0
25.0
7.0
Compilation Error
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 program?
Solution |
2
Discuss
|
Which of these is long data type literal?
Solution |
3
Discuss
|
What will be the output of the following Java program?
Solution |
4
Discuss
|
What will be the output of the following Java program?
Solution |
5
Discuss
|
Which of these can not be used for a variable name in Java?
Solution |
6
Discuss
|
Which of these can be returned by the operator &?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved