Question:

What will be the result of running this code?

public class Test {

  static boolean printAndReturn(boolean value) {
    System.out.println(value);
    return value;
  }

  public static void main(String[] args) {
    if (printAndReturn(false) && printAndReturn(true)) {
      System.out.println(true);
    } else {
      System.out.println(false);
    }
  }

}

Answers:


Keywords:

© 2017 QuizBucket.org