📚 Practice Mode

Java and SAS Programming Concepts

Learn at your own pace with hints and detailed explanations

1 / 20
Multiple Choice

Given: class Feline { public static void main(String[] args) { Long x = 42L; Long y = 44L; System.out.print(" " + 7 + 2 + " "); System.out.print(foo() + x + 5 + " "); System.out.println(x + y + foo()); } static String foo() { return "foo"; } } What is the result?

  1. 9 foo47 86foo
  2. 9 foo47 4244foo
  3. 9 foo425 86foo
  4. 9 foo425 4244foo
  5. 72 foo47 86foo
  6. 72 foo425 86foo