3
21. Determine the output of the following program.
public class Predictoutput 3
{
public static void main(String args[])
int a = 2, b = 2, C = 2;
System.out.println("Output 1: " + (a + 2 < b + c));
System.out.println("Output 2:
+ (a + 2 < (b + c)));
Answers
Answered by
0
Answer:
Java is a case-sensitive language
so C and c both are two different variables. also you have not given ' " ' after "Output 2: in line 6:28.
if this is a typing mistake then output is:
Output 1: false
Output 2: false
Similar questions