What will be the output of the following program
X = 85
y = 97
if x>y and y>20 :
print("First check")
else:
if y>x or x>99:
print("Second check")
else:
print(" Last one!")
Answers
Answered by
4
class A { public static void main(String[] args)
{ System.out.println('j' + 'a' + 'v' + 'a'); }
Choices:
a) java
b) Something else (Other than simple concatenation)
Answer: b) Something else (Other than simple concatenation)
Therefore After execution of the program, an addition of each equivalent value of the character will be obtained.
Hence the output is 106 + 97 + 118 + 97 = 418
Similar questions