1. Engineering
  2. Computer Science
  3. what is the output of the following code int a...

Question: what is the output of the following code int a...

Question details

What is the output of the following code?

int a = 70;
boolean b = false;

if(a >= 70) {
   System.out.print(1);
   
   if(b==true) {
      System.out.print(2);
   }

} else {
   System.out.print(3);

   if(b==false) {
      System.out.print(4);
   }

}
System.out.print(5);
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution